sign加密打印

This commit is contained in:
sxu 2025-07-16 16:39:33 +08:00
parent 30fc3ff43c
commit b2c23a3ed6
1 changed files with 3 additions and 0 deletions

View File

@ -63,5 +63,8 @@ public class Sm4Utils {
// 解密密文 // 解密密文
String decryptedText = Sm4Utils.decrypt(plainText); String decryptedText = Sm4Utils.decrypt(plainText);
System.out.println("解密后: " + decryptedText); System.out.println("解密后: " + decryptedText);
String sign = "jyy:2025-07-16";
System.out.println("sign加密后: " + Sm4Utils.encrypt(sign));
} }
} }