R
R
Rocket-API
Search…
自定义代码加解密
实现接口com.github.alenfive.rocketapi.extend.IScriptEncrypt
默认实现类:
1
/**
2
* 代码加解密默认实现类
3
*/
4
5
@Component
6
public class DefaultScriptEncrypt implements IScriptEncrypt {
7
8
//加密
9
@Override
10
public String encrypt(String source) throws Exception {
11
return source;
12
}
13
//解密
14
@Override
15
public String decrypt(String encrypt) throws Exception {
16
return encrypt;
17
}
18
}
Copied!
Last modified 1yr ago
Copy link