Tutorial :How can I decrypt a file encrypted in Perl using Crypt::CBC (Blowfish) in C?


I have a small encryption tool in Perl which uses the Crypt::CBC and Blowfish to encrypt files.

I want to write the decryption algorithm in C or C++ ... Please somebody help me in doing this.


Blowfish source code is available here. Note that since blowfish is a symmetric encryption system, encryption and decryption are the same operation.


Here is a sample using CryptoPP one of the greatest crypto libraries.


You could always embed Perl in your C program...

(Update: at least one person seems to think that's a bad idea; it's really not that hard to do, and saves the hassle of worrying whether the Perl implementation of blowfish exactly matches whatever library you find to do it in C.)

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »