in reply to Re^2: Perl encryption not matching PHP encryption
in thread Perl encryption not matching PHP encryption
Version 2.30 of C::CBC pod shows that new() accepts keysize via -keysize-value pair. And, currently only C::Blowfish supports variable keysize via Openssl ...
The -keysize and -blocksize arguments can be used to force the cipher's keysize and/or blocksize. This is only currently useful for the Crypt::Blowfish module, which accepts a variable length keysize. If -keysize is not specified, then Crypt::CBC will use the maximum length Blowfish key size of 56 bytes (448 bits). The Openssl library defaults to 16 byte Blowfish key sizes, so for compatibility with Openssl you may wish to set -keysize=>16. There are currently no Crypt::* modules that have variable block sizes, but an option to change the block size is provided just in case.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Perl encryption not matching PHP encryption
by johnnytc4 (Novice) on Apr 12, 2011 at 14:15 UTC | |
by Anonymous Monk on Apr 12, 2011 at 15:02 UTC | |
by johnnytc4 (Novice) on Apr 12, 2011 at 19:06 UTC | |
by johnnytc4 (Novice) on Apr 12, 2011 at 21:21 UTC |