update 增加 加密头用来判断数据是否已经被加密了 防止重复加密

This commit is contained in:
疯狂的狮子Li 2025-09-15 17:14:47 +08:00
parent a918b880d6
commit a703cb2ad1

View File

@ -112,8 +112,8 @@ public class EncryptorManager {
return value; return value;
} }
IEncryptor encryptor = this.registAndGetEncryptor(encryptContext); IEncryptor encryptor = this.registAndGetEncryptor(encryptContext);
String decrypt = encryptor.decrypt(value); String str = StringUtils.removeStart(value, Constants.ENCRYPT_HEADER);
return StringUtils.removeStart(decrypt, Constants.ENCRYPT_HEADER); return encryptor.decrypt(str);
} }
/** /**