in reply to OpenSSL and Crypt::CBC don't give the same ciphertext
Is that correct? How does openssl interpret iv and key strings? Note that "With format "h", the first character of the pair determines the least-significant nybble of the output character"$iv = pack("h*", $iv); $fixed_key = pack("h*", $fixed_key);
$ perl -E 'say ord pack "h*", "01"' 16 # that is, 0x10 $ perl -E 'say ord pack "H*", "01"' 1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: OpenSSL and Crypt::CBC don't give the same cipher text
by LonelyPilgrim (Beadle) on Feb 06, 2016 at 02:08 UTC |