我正在使用AES_ENCRYPT方法加密Mysql数据,但当我尝试它的Mysql日期类型字段,这是不起作用的。如何使用AES_ENCRYPT加密Mysql日期字段?我已经用谷歌搜索过了,但到目前为止还没有成功。
发布于 2012-11-29 19:58:15
mysql手册中:
AES_ENCRYPT() encrypts a string and returns a binary string.
AES_DECRYPT() decrypts the encrypted string and returns the original string.
The input arguments may be any length.
If either argument is NULL, the result of this function is also NULL. 这意味着您需要将加密数据存储在varchar或text类型的列中。
https://stackoverflow.com/questions/13625131
复制相似问题