There's more than one way to do things | |
PerlMonks |
Re: Encrypt using AES(block size 128-bit) in CBCby wrog (Friar) |
on Jun 14, 2015 at 12:21 UTC ( [id://1130363]=note: print w/replies, xml ) | Need Help?? |
(Update: no, this isn't it. see my other answer) Looks like you're providing the key and the iv in hex format, whereas I'm pretty sure you need to provide the actual key/iv bytes directly (that your encrypted string is coming out in hex format is because you're using encrypt_hex) which means you instead need something like but I don't know for sure since the hex you've provided for your key/iv only specifies 8 bytes and AES requires 16.
In Section
Seekers of Perl Wisdom
|
|