Dimitar Krastev
Dimitar Krastev

Reputation: 15

C# and C++ socket data encryption

Im writing a C# client and C++ server which should communicate via TCP sockets with no encryption. Everything is great. However I need to encrypt some of the data (but not all of it) like login information. I am looking for a asymmetric algorhythm to implement on the C# and C++ side to implement secured exchange of login data. Could you help me?

Upvotes: 0

Views: 3326

Answers (2)

Kraylog
Kraylog

Reputation: 7563

RSA on Wikipeida

There are a few ready made implementations both for c# and c++.

C# implementation class

C++ implementation

Upvotes: 0

misha
misha

Reputation: 2889

Try RSACryptoServiceProvider.

Upvotes: 1

Related Questions