willardf / Hazel-Networking

Hazel Networking is a low level networking library for C# providing connection-oriented, message-based communication via RUDP.
MIT License
391 stars 60 forks source link

Does Hazel support any form of encryption? #19

Closed BrixsterPlanet closed 3 years ago

BrixsterPlanet commented 3 years ago

Hey, Forest.

I'm using the Hazel library to develop my MMO video game, and am wondering if it supports any type of high-level encryption. I'm looking for levels of automatic SSL encryption comparable to Secure WebSocket (WSS) or HTTPS. I don't want eavesdroppers to steal my users' credentials, and I do not know if Hazel supports what I'm looking for out of the box.

Is this possible? Thanks

edqx commented 3 years ago

As of recently I believe it has DTLS support.

willardf commented 3 years ago

Yep, check out the DtlsConnectionListener and DtlsUnityConnection classes. You can find usage in the UnitTests/Dtls/ConnectionTests.cs.