MySql WorkBench AES 256 Decryption
问题 I have table with: 1) Encrypted_ID varchar (256) 2) Initialization Vector(iv)varchar(256). I would like to decrypt the column value using the key I am using: select Cast(AES_DECRYPT(Encrypted_ID,'Key',InitializationVector_iv)as CHAR ) as DecryptedValue from MyTable; The result is Null. I Also tried: select Cast(AES_DECRYPT(AES_ENCRYPT(Encrypted_ID,'Key',InitializationVector_iv),'Key') as CHAR ) as DecryptedValue from MyTable; The result is blob for few rows. I'm not sure what I'm doing wrong