Crypto headaches.

SamG mad.vijay at gmail.com
Wed Feb 18 08:23:26 EST 2009


Hi,

Using the python's Crypto.Cipher.Blowfish is create and encrypted file
in the CBC mode. Now... when try to decrypt it with OpenSSL i get an
error stating "bad magic number".

I tried
$ cat encr-file | openssl bf-cbc -d -pass pass:sam > org-file
or
$ openssl bf-cbc -d -pass pass:sam -in encr-file -out org-file

BTW, decryption using a python code works well. But i m of the
impression a file encry with one program should/can be decrypt with
another program (in my case openssl) using the same parameters.

Pls help.

SamG



More information about the Python-list mailing list