|
@@ -108,12 +108,12 @@ public class AESUtils {
|
|
|
//默认向量常量
|
|
|
String IV = "0000000000000000";
|
|
|
//密匙
|
|
|
- String pkey = "c552e6d332597f9efd3697fb76bb9cfb";
|
|
|
+ String pkey = "2c1db8e7eee65eeeebacb0afbec37096";
|
|
|
System.out.println("待加密报文:" + content);
|
|
|
System.out.println("密匙:" + pkey);
|
|
|
String aesEncryptStr = AESUtils.aesEncryptStr(content, pkey,IV);
|
|
|
System.out.println("加密报文:" + aesEncryptStr);
|
|
|
- String aesDecodeStr = AESUtils.aesDecodeStr("uKvSxroUgmrGXBb41GcmiQ==", pkey,IV);
|
|
|
+ String aesDecodeStr = AESUtils.aesDecodeStr("Q1R3PhZX3/h9Mue5L5kmupSKW24KiGag5yst5k0a0YtVSC5mnenePI5LLZ4GigdpH2RUv/NHX1Kjhnzt1eQpYBgGS5t9Ki63Vc5E/R3T6TnrXfPyeIv1K+HgaCai3sc0", pkey,IV);
|
|
|
System.out.println("解密报文:" + aesDecodeStr);
|
|
|
System.out.println("加解密前后内容是否相等:" + aesDecodeStr.equals(content));
|
|
|
}
|