Get hexadecimal encrypted string in AES 256 Crypto++
I am trying to implement the AES 256 algorithm using Crypto++ in MS visual studio. Operating system is Windows 7 (64 bit). I need to provide the key as a hexadecimal string, password as string and finally i want the encrypted string to also be hexadecimal string. Here is what I am trying to do: My encrypt method: std::string encrypt(const std::string &password) { std::string plain = password; std::string ciphertext; char * decodedKey= "729308A8E815F6A46EB3A8AE6D5463CA7B64A0E2E11BC26A68106FC7697E727E37011"; byte key[ CryptoPP::AES::MAX_KEYLENGTH ], iv[ CryptoPP::AES::BLOCKSIZE ]; CryptoPP: