Reputation: 4428
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?
Upvotes: 1
Views: 906
Reputation: 2259
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.
Upvotes: 10