public interface EncryptAlgorithmApi
可根据自身需要自定义实现,默认实现为AES
String
decrypt(String cipher)
encrypt(String encryptedData)
void
setInstance(cn.hutool.crypto.symmetric.SymmetricCrypto instance)
String encrypt(String encryptedData)
encryptedData
String decrypt(String cipher)
cipher
void setInstance(cn.hutool.crypto.symmetric.SymmetricCrypto instance)
只有在项目首次初始化配置时调用,随意调用会导致之前加密数据无法解密
Copyright © 2021. All rights reserved.