目录
概述
配置属性加解密之对称加密
安装JCE
1)下载Java JCE
jdk8
http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
jdk7
http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html
2)解压安装
解压安装,直接覆盖到对应目录;
C:\Program Files\Java\jdk1.8.0_60\jre\lib\security
C:\Program Files\Java\jdk1.7.0_67\jre\lib\security
3)打开命令窗口
加密
C:\Users\shangwu>curl http://localhost:8080/encrypt -d mysecret
9d0e7c09462e74623b19865ae4317088e7d63b0650108c85e0aca22a003ddd08
解密
C:\Users\shangwu>curl http://localhost:8080/decrypt -d 9d0e7c09462e74623b19865ae4317088e7d63b0650108c85e0aca22a003ddd08
mysecret
==============================
QQ群:143522604
群里有相关资源
欢迎和大家一起学习、交流、提升!
==============================