完整能运行的java AES源代码,需要官网手工下载local_policy.jar 和 US_export_policy.jar文件覆盖java安装目录的文件,才能使用CFB模式。下载地址为:
http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html
//java -jar testAES.jar --generate-key ./key.txt 256
//java -jar testAES.jar --encrypt ./input.txt ./OUT.txt ./key.txt CFB
//java -jar testAES.jar --decrypt ./OUT.txt ./OUTDEC.txt ./key.txt CFB
1