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

Encryption via Session Keys #7

Closed
JohnDoneth opened this issue Aug 3, 2017 · 1 comment
Closed

Encryption via Session Keys #7

JohnDoneth opened this issue Aug 3, 2017 · 1 comment

Comments

@JohnDoneth
Copy link

I propose per packet encryption via session keys per packet when connecting to the server for the first time. The session key (a symmetric key) will be generated for both the client and server using a public key (an asymmetric key) using something like the Diffie–Hellman key exchange protocol.

After the session key is established per connection; we use the session key to encrypt outgoing client traffic and decrypt it at the server, and vice-versa because the client and server now share a secret key.

There are already a few crypto libraries for Rust such as Ring, and bindings to OpenSSL that could be used.

Of course, this is just an idea, and there might be a better way to go about encrypting network traffic.

@inlife
Copy link

inlife commented Nov 28, 2017

Or possibly a nice way is to add a pre-send callback for inserting your own handler for encryption.
Keeping deps nice and minimal :D

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