views:

64

answers:

2

Has anyone tried using libmcrypt and visual c++? I was trying to use Crypto++ but it seems not fully compatible - and I need to decrypt data encrypted in PHP using linux libmcrypt.

I found only cygwin version of libmcrypt but no .lib files or header.

I'm using RIJNDAEL_128 - maybe there is easier way to decrypt it in Visual C++?

Thanks

A: 

I'd be surprised if Crypto++ didn't do the job frankly. It is a bit awkward to use and is fairly badly documented, but I have found it very powerful in the past.

By RIJNDAEL_128 I am assuming you mean AES? In which case, Crypto++ can help . This codeproject article ought to be a good starting point too.

Konrad
The problem is that the encrypted data was using 8-byte long key, which seems to be not supported by Crypto++ implementation (probably for valid reason, and the encoding code is actually bad but i had to deal with it)
macki
A: 

I finally found a working libmcrypt version compatible with Visual Studio It is here http://files.edin.dk/php/win32/mcrypt/dev/ and worked correctly.

macki