1 Star 2 Fork 0

bigsuperyu/cript

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
PbeCoderExample.java 485 Bytes
一键复制 编辑 原始数据 按行查看 历史
bigsuperyu 提交于 2016-07-08 15:17 +08:00 . 添加测试
package example;
import cript.PBECoder;
public class PbeCoderExample {
public static void main(String[] args) {
try {
String test = "thisagood";
String salt = PBECoder.initBase64Salt();
String pwd = "pwd";
String result = PBECoder.encrypt(test, pwd, salt);
System.out.println(result);
System.out.println(PBECoder.decrypt(result, pwd, salt));
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/bigsuperyu/cript.git
git@gitee.com:bigsuperyu/cript.git
bigsuperyu
cript
cript
master

搜索帮助