Skip to content
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 encryption #38

Open
levino opened this issue May 26, 2015 · 1 comment
Open

Add encryption #38

levino opened this issue May 26, 2015 · 1 comment

Comments

@levino
Copy link

levino commented May 26, 2015

Is there any middleware that adds encryption to this? Signature is nice but I would love all data to be encrypted on the client with the server public key and decrypted on the server with the server private key and vice versa. Would be nice to have another piece of middleware for this. Any plans for this?

@xcthulhu
Copy link
Contributor

A plausible way to achieve this would be to use AES and ECDH for shared secrets.

This approach has a nice feature, thanks to the mathematics of Public-Private key crypto: the sender can securely specify multiple recipients. This would allow for multicast rather than just simple server-client interaction. Also, a particular client could use a server for securely chatting with other clients, with the server simply acting as a mediator, which might be a stopgap protocol until things like whisper and telehash get widespread adoption.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants