From 8af906ff0026530f341a36b760ad4db980e80a54 Mon Sep 17 00:00:00 2001 From: Caohongtao Date: Fri, 18 Oct 2024 05:36:16 +0000 Subject: [PATCH] AESUtil: fix some variable error Signed-off-by: Caohongtao --- .../main/java/com/hnkylin/cloud/core/common/AESUtil.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mcp-cloud-core/src/main/java/com/hnkylin/cloud/core/common/AESUtil.java b/mcp-cloud-core/src/main/java/com/hnkylin/cloud/core/common/AESUtil.java index 88c9aea..76a71da 100644 --- a/mcp-cloud-core/src/main/java/com/hnkylin/cloud/core/common/AESUtil.java +++ b/mcp-cloud-core/src/main/java/com/hnkylin/cloud/core/common/AESUtil.java @@ -30,9 +30,9 @@ public class AESUtil { } public static byte[] revealHex(String codedText) throws Exception { - byte[] encypted = new Hex().decode(codedText.getBytes("UTF-8")); + byte[] encrypted = new Hex().decode(codedText.getBytes("UTF-8")); AES_CIPHER.init(Cipher.DECRYPT_MODE, AES_KEY); - byte[] decrypted = AES_CIPHER.doFinal(encypted); + byte[] decrypted = AES_CIPHER.doFinal(encrypted); return decrypted; } @@ -57,9 +57,9 @@ public class AESUtil { * @throws Exception */ public static String reveal(String codedText) throws Exception { - byte[] encypted = new Hex().decode(codedText.getBytes("UTF-8")); + byte[] encrypted = new Hex().decode(codedText.getBytes("UTF-8")); AES_CIPHER.init(Cipher.DECRYPT_MODE, AES_KEY); - byte[] decrypted = AES_CIPHER.doFinal(encypted); + byte[] decrypted = AES_CIPHER.doFinal(encrypted); return new String(decrypted); } -- Gitee