为什么在MySQL中,使用带有强调字符的AES_ENCRYPT和AES_DECRYPT函数不能返回相同的值?
SELECT aes_decrypt(aes_encrypt("A phrase with stressed char à","mykey"),"mykey") as value
from dual
limit 1
不返回正确的值。
代码:
SELECT aes_decrypt(aes_encrypt("A phrase without stressed char","mykey"),"mykey") as value
from dual
limit 1
工作完美。
为什么?