MySQL 5.7 AES 解密导致非 ASCII 字符为什么以及如何修复?
我正在使用 AES-256-CBC 函数来解密 MYSQL 存储的数据,如下所示,
SELECT CAST(AES_DECRYPT(FROM_BASE64(dob), @k, @iv) AS CHAR) as dob FROM example;
这可以很好地解密,但是正如您在下面的屏幕截图中看到的那样,它会导致数据值开头出现许多非 ASCII 关键字符?
为什么会发生这种情况&如何解决这个问题?
I am using AES-256-CBC function to decrypt the MYSQL stored data, like below
SELECT CAST(AES_DECRYPT(FROM_BASE64(dob), @k, @iv) AS CHAR) as dob FROM example;
This does the decryption well, however as you can see in the below screenshot it results in many non-ascii key characters on the beginning of the data value?
Why this happens & how to fix this ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论