slartibartfast
slartibartfast

Reputation: 4428

SSL or TLS encryption for custom protocol

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

Answers (1)

Jumbogram
Jumbogram

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

Related Questions