Crypto headaches.

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


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


More information about the Python-list mailing list