-2

Suppose I have an AES CBC 256 encrypted string with the key, how do I go about getting the original message?

1

If it is raw AES256 in CBC mode, you can use the openssl utility to decrypt it.

openssl aes-256-cbc -d -in encrypted -out decrypted -K $hex_key -iv $hex_iv

Replace $hex_key with the hex representation of the 256 bit key. As CBC mode uses an initialization vector, or IV, you also have to specify the hex representation of the IV, which is 128 bits.

Not the answer you're looking for? Browse other questions tagged or ask your own question.