Skip to content

xuxiaowei-com-cn/AES

Repository files navigation

AES 对称性加密

License-Anti Link-996

为简化开发工作、提高生产率而生

maven code style

示例

  • 代码
String content = "Hello World";
String seed = "xuxiaowei.com.cn";

System.out.println("原文:" + content);
System.out.println("种子(密码):" + seed);

String encryptStr = Aes.encryptStr(content, seed);
System.out.println("加密结果:" + encryptStr);

String decryptStr = Aes.decryptStr(encryptStr, seed);
System.out.println("解密结果:" + decryptStr);
  • 结果
原文:Hello World
种子(密码):xuxiaowei.com.cn
加密结果:e33b80dab15be20728f0dccaee94d90b
解密结果:Hello World

其他示例

  • String、byte 类型的示例,查看测试类

JS