1

So I'm making my own peer-to-peer UDP protocol and I want to add encryption, so basically I want to have the clients exchange public encryption keys. What library would I use, and how would I generate the keys and use them to encrypt?

1 Answer 1

10

SSL and TLS require a reliable transport protocol and cannot run over UDP. What you're looking for is DTLS. What you do from there depends on what library you use. Wikipedia lists several options.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.