Suppose I have an AES CBC 256 encrypted string with the key, how do I go about getting the original message?
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
$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.