New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add simple helper functions for encrypting & decrypting content #49
Comments
How close are you at implementing this? I'm mainly wondering whether I should do a userland e2e or wait for native support. |
I won't get to this in the next couple of weeks at least. This is really just a matter of finding the right functions from If you do it yourself and want to share your code, that would be helpful! |
I use Sodium directly for crypto, so unfortunately I have no experience with chloride. Personally I'm planning to go with ChaCha20-Poly1305 for AEAD. Btw, when you get around to implement the encryption, you should plan to implement streaming with WASM because otherwise performance will be unbearable for anything more than small text files, especially with mobile. But the issue I've run into is that there is no ChaCha20-Poly1305 WASM implementation that I have found that supports streaming out-of-the-box. |
add a couple tests for QueryFollower
This issue is duplicated by #10
What's the problem you want solved?
Users have public keys, let's send them some private messages! Or eventually, encrypt messages to the workspace public key so only people with the workspace private key can read it (e.g. the members of the invite-only workspace).
Complicated solution
#11 Fully wrapped encrypted documents
Easy solution
Just encrypt the
content
and nothing else. Thepath
andauthor
will be exposed.The recipient could be specified in the path so they know where to look for messages, or we could make recipients scan through everything looking for documents they can decrypt.
The encryption can probably be done with some function in Chloride. For multi-recipient messages we can use private-box
Potential crypto modules we can use:
Todo
crypto.ts
The text was updated successfully, but these errors were encountered: