新增 encrypt.defaultKey 参数,适用于 Aes、M3 加密的默认秘钥;新增 encrypt.storeBase64 参数,是否将 Hex 编码改为 Base64 编码存储;新增 encrypt.smAlgorithm 参数,是否使用国密 SM 算法(一键替换 SHA-1 替换为 SM3、AES 替换为 SM4 算法)

This commit is contained in:
thinkgem
2024-07-23 19:43:27 +08:00
parent 5f104fce87
commit c53b52f932
3 changed files with 27 additions and 0 deletions

View File

@@ -314,6 +314,15 @@ logging:
# 前端基础路径
#frontPath: /f
# 加密设置
#encrypt:
# # 默认秘钥,可通过 AesUtils.genKeyString() 生成新秘钥 Hex 编码
# defaultKey: 9f58a20946b47e190003ec716c1c457d
# # 是否使用国密 SM 算法SHA-1 替换为 SM3、AES 替换为 SM4
# smAlgorithm: false
# # 对称或非对称加密是否使用 Base64 存储,默认 Hex 存储
# storeBase64: false
# 分页相关
#page:
#