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



Question:

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.


Solution:1

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


Solution:2

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


Solution:3

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
Previous
Next Post »