in reply to Encrypt using AES(block size 128-bit) in CBC
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.-key => pack('H32',$key), -iv => pack('H32',$iv),
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Encrypt using AES(block size 128-bit) in CBC
by u65 (Chaplain) on Jun 14, 2015 at 13:16 UTC | |
by wrog (Friar) on Jun 14, 2015 at 18:17 UTC |