I have an application which encrypt XML data using rijndaelmanaged algorithm to encrypt the data. My task is to convert C# code to C++ so that application doesn’t depends upon .net framework. Kindly tell me about any library which have rijndaelmanaged algorithm and other cryptography techniques like passwordDeriveByte etc.
I have an application which encrypt XML data using rijndaelmanaged algorithm to encrypt the
Share
Here’s one public-domain Rijndael algorithm that (according to the docs) will also compile as C++: Rijndael C/C++ Algorithm. Obviously if it compiles for both languages it probably won’t conform to C++ best practices, but it will work.
Here’s another one that was written in C++, derived from a Java implementation: CodeProject C++ Rijndael
Understand that RijndaelManaged is exclusive to the .NET Framework; by its definition as a “managed” algorithm it is written and compiled into MSIL and is not a “wrapper” for unmanaged code. There are other Rijndael implementations that are “wrappers”, and such implementations can be accessed “natively” by simply using the Windows CSP that is being “wrapped”, such as the Microsoft AES Cryptographic Service Provider which ships with Windows desktop and server versions starting from Win2000.