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

Encrypted sockets. #9

Open
delaneyj opened this issue Jan 26, 2014 · 4 comments
Open

Encrypted sockets. #9

delaneyj opened this issue Jan 26, 2014 · 4 comments

Comments

@delaneyj
Copy link

I had actually started my own Dart websocket based client/server thing (codenamed javelin). Its does some acks and registration steps to allow things like automatic configurable RC4 encryption.

It that something you might want to include in force if I gave you the code?

@jorishermans
Copy link
Member

Ofcourse, it would be great to add this to the project, encrypting is something that can be added to force, send me the code and I will add it or you can fork the project and make a pull request.

@jorishermans
Copy link
Member

Is this your dart package? https://github.com/delaneyj/dart-rc4

@delaneyj
Copy link
Author

That's the base rc4 yes. I have more code around the ack cycle. Basically it makes it so the initial server connection grabs a new session key. that is then used to encrypt the rest of the session. It also means my server doesn't send open/close when it happens on the websocket but rather after the encryption stage.

Also since a client can send events prior to the encrypt stage those get queued up as well for the right 'welcome' message.

@Emasoft
Copy link

Emasoft commented Jul 12, 2014

Encryption should be always on, for privacy and legal reasons. We live in a post-Snowden world. You cannot settle for insecure and deprecated protocols like RC4. You need the real deal. Something like this: https://pub.dartlang.org/packages/cipher .
I also suggest to implement a form of Perfect Forward Secrecy algorithm for the key exchange between the users ( http://en.wikipedia.org/wiki/Forward_secrecy ).

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

3 participants