MYSQL AES 加密

使用mysql的加密函数运行:select HEX(AES_ENCRYPT( 'test aes encrypt','123')) as aesTest 输出密文:17CDAE577C715A0B5A922BF07462622AF15884B6D0F596B0241DC8F966C4A93F https://dev.mysql.com/doc/refman/8.0/en/encryption-functions.html#function_aes-encrypt 官方文档解释:The ...
MYSQL AES 加密
使用mysql的加密函数运行:

select HEX(AES_ENCRYPT( 'test aes encrypt','123')) as aesTest

输出密文:

17CDAE577C715A0B5A922BF07462622AF15884B6D0F596B0241DC8F966C4A93F

https://dev.mysql.com/doc/refman/8.0/en/encryption-functions.html#function_aes-encrypt

官方文档解释:

The block_encryption_mode system variable controls the mode for block-based encryption algorithms. Its default value is <font color="red"> aes-128-ecb </font>, which signifies encryption using a key length of 128 bits and ECB mode. For a description of the permitted values of this variable, see Section 5.1.8, “Server System Variables” .

在线加密验证 : http://tool.chacuo.net/cryptaes

该网加密结果为:

17cdae577c715a0b5a922bf07462622af15884b6d0f596b0241dc8f966c4a93f

与mysql加密结果一致,只是大小写差异。2022-07-07
mengvlog 阅读 9 次 更新于 2025-07-21 08:07:09 我来答关注问题0
檬味博客在线解答立即免费咨询

mySQL相关话题

Copyright © 2023 WWW.MENGVLOG.COM - 檬味博客
返回顶部