From d2d0425c8d1460618f3a4fa6e53eec7228ab89b8 Mon Sep 17 00:00:00 2001
From: fhx <308050795@qq.com>
Date: 星期四, 16 十一月 2023 17:14:18 +0800
Subject: [PATCH] Merge branch 'master' of http://1.15.4.62/r/~chenjiahe/hx_common

---
 src/main/java/com/hx/util/JwtTool.java |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/hx/util/JwtTool.java b/src/main/java/com/hx/util/JwtTool.java
index 873b27a..c2d050a 100644
--- a/src/main/java/com/hx/util/JwtTool.java
+++ b/src/main/java/com/hx/util/JwtTool.java
@@ -1,5 +1,6 @@
 package com.hx.util;
 
+import java.util.Base64;
 import java.util.Date;
 
 import javax.crypto.SecretKey;
@@ -71,7 +72,7 @@
     }
     
     public static SecretKey generalKey() {
-        byte[] encodedKey = BASE64.decryptBASE64(JwtConstant.JWT_SECERT);
+        byte[] encodedKey = Base64.getDecoder().decode(JwtConstant.JWT_SECERT);
         SecretKey key = new SecretKeySpec(encodedKey, 0, encodedKey.length, "AES");
         return key;
     }

--
Gitblit v1.8.0