添加单点登录相关
This commit is contained in:
@@ -89,6 +89,15 @@ public class EncryptUtil {
|
||||
}
|
||||
}
|
||||
|
||||
public static String decryptByAppIdAndSecret(String content, String appId, String appSecret) {
|
||||
if(StringUtils.isEmpty(content)) {
|
||||
return "";
|
||||
}
|
||||
String generatedIv = generateAppIV(appId);
|
||||
String generatedKey = generateAppKey(appId, appSecret);
|
||||
return decrypt(content, generatedIv, generatedKey);
|
||||
}
|
||||
|
||||
private static String getIv(String iv) {
|
||||
return generateIV(iv);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user