[pycrypto] Pycrypto openssl interoperability

Legrandin gooksankoo at hoiptorrow.mailexpire.com
Fri Dec 17 10:18:28 CST 2010


My guess is that the openssl option "-pass" allows you to enter
some arbitrary text from which the actual key is *derived*.
You should try to use "-K" instead of "-pass".


> Encrypt the file secrets.txt using openssl, AES 128bit CBC. The
> password is read from the file pass.txt:
> openssl enc -aes-128-cbc -pass file:pass.txt -a -in secrets.txt -out
> secrets.txt.enc

More information about the pycrypto mailing list