But to answer your question, you need to add an option to tell Crypt::CBC to use the old-style header, setting "randomiv" for the "-header" option. From the Crypt::CBC docs describing values for the "-header" option:
"randomiv" -- Generate the block cipher key from the passphrase, and
choose a random 8-byte value to use as the IV. The IV will
be prepended to the data stream. This method is compatible
with ciphertext produced by versions of the library prior to
2.17, but is incompatible with block ciphers that have non
8-byte block sizes, such as Rijndael. Crypt::CBC will exit
with a fatal error if you try to use this header mode with a
non 8-byte cipher.
-sam
In reply to Re: Crypt::CBC, Blowfish and Salt problem
by samtregar
in thread Crypt::CBC, Blowfish and Salt problem
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |