Complete Encrypt + Decrypt cycle using AES256
wanted : encrypt a string using AES256 method, format the encrypted data into hexadecimal string, then decrypt it again using same key into the original string.
here's my try
which prints : 61CB5825C0A9B5BE56A3372F0A6EDF all ok.
now to decrypt (not from the dst char array above, but from the Encrypted string) :
I know the problem is when I format the dst array into Encrypted variable, I can't correctly revert it back to the char array before decryption.
how do I solve this problem ?
wanted : encrypt a string using AES256 method, format the encrypted data into hexadecimal string, then decrypt it again using same key into the original string.
here's my try
which prints : 61CB5825C0A9B5BE56A3372F0A6EDF all ok.
now to decrypt (not from the dst char array above, but from the Encrypted string) :
I know the problem is when I format the dst array into Encrypted variable, I can't correctly revert it back to the char array before decryption.
how do I solve this problem ?