Hi All,
I am trying to encrypt and decrypt a field in a table. I am storing the encrypted value as a string in the table. I have written a class with encrypt() and decrypt(). The encrypt works fine but when I try to decrypt i get an error
saying -----------> "Error occurred while encrypting/decrypting."
the code in my decrypt method is below.
public static server EncryptedURLParameter decryptString(str _res)
{
CryptoAPI cryptoAPI;
container decryptedContainer;
ContainerClass concls;
cryptoAPI = new CryptoAPI(99999999999);
decryptedContainer = BinData::stringToData(_res);
decryptedContainer = ContainerClass::blob2Container(cryptoAPI.decrypt(decryptedContainer));
return con2Str(decryptedContainer);
}
Thanks in advance for the help.
*This post is locked for comments
I have the same question (0)