Hacker News new | ask | show | jobs
by Soyuz 4311 days ago
Do you use Key Escrow for private key storage? How can the other receiver decrypt the file using his browser only? Where do you store the private key?
1 comments

The users password acts as a symmetric key. It is never sent to the server, but a hashed copy is sent to the server for authentication, which is then rehashed and stored in the DB.

The users private key is AES encrypted with the password as key and sent to the server for storage. A JSON hash of their contacts is also encrypted in the same way and sent to the server for storage.