My C++ program is using a standard blowfish.
My C# program is using the Blowfish encryption algorithm from here.
Both applications (TCP Clients) do the same thing: receive a packet, encrypt it and then send it back. If the server recognises the packet as normal - it sends another packet, otherwise it closes the socket. I followed all functions in C++ and C# and everything is the same except the encryption.
In the C++ file I have only one encryption. However, in the C# Blowfish I have
- BlowfishCBC
- BlowfishCFB
- BlowfishECB
- BlowfishSimple
I didn't know which one is the one in my C++ project, so I randomly picked BlowfishECB
. But it doesn't work, the server (I don't have access to it) doesn't recognize the packet as encrypted.
My question: Is there a standard Blowfish for C# or if this is the only one, how do I solve this problem? EDIT:
The C++ blowfish code can be seen here.