Giter Site home page Giter Site logo

12-words's Introduction

12-words

This is the source code for the website https://12-words.com; a service to transfer files from browser to browser using client side encryption.

Install

The web/ folder contains the client application. It is configured to be hosted on and upload to S3. Some configuration options are available in 12-words.js

The site can also be hosted by the minimal webserver found in srv/ written in rust. To do this set (in 12-words.js)

UPLOAD_AWS=false

and run the server using:

cargo run

How it works

A file is uploaded using the following steps:

  1. A passphrase is generated from a wordfile (from BIP39), using a (Fortuna) PRNG
  2. The passphrase is transformed into a filename using 100 rounds SHA-512
  3. The passphrase is transformed, with a salt into an encryption key using 1000 rounds PBKDF2
  4. The input files are compressed and encrypted using the encryption key (3) and AES-256
  5. The encrypted file is uploaded with the filename (2).

To retain a file, the incoming money is checked using a HD bitcoin address. The address is derived from a public root key and the filename (2).

When a file is downloaded, the filename is determined using the same 100 rounds SHA-512.

References

The services uses:

12-words's People

Contributors

tomasvdw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.