Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Needs an algorithm where encryption and decryption should happen in both ends between Linux C and Windows VC++ and C#.

Thanks in advance.

What I have tried:

I tried OpenSSL AES 256 but it didnt work in C#. I am not sure if AES 256 CBC will work or not ?
Posted
Updated 3-Mar-16 8:12am
v2
Comments
Richard MacCutchan 3-Mar-16 13:03pm    
There is only one way to find out.
Maciej Los 3-Mar-16 13:04pm    
Well... This is not a question at all! This is a code-request!

1 solution

Any of the encryption algorithms should work, provided they are implemented correctly, and the data is passed between the systems without modification. So start looking at what standard algorithms are implemented on the linux system, and see if they have equivalents implemented already for Windows / .NET

Probably the place to start is with the MCrypt documentation: mcrypt(3): encryption/decryption library - Linux man page[^] - certainly, it includes Triple DES which is definately available to all .NET languages.
 
Share this answer
 
Comments
Maciej Los 3-Mar-16 15:36pm    
5ed!
Member 10813090 3-Mar-16 23:31pm    
Thanks for the input i wil try that once and let you know.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900