views:

471

answers:

3

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.

+8  A: 

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

rlbond
+2  A: 

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.)

ysth
+2  A: 

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

Ismael