mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-17 08:46:39 +08:00
update 增加 加密头用来判断数据是否已经被加密了 防止重复加密
This commit is contained in:
parent
a918b880d6
commit
a703cb2ad1
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user