chenjiahe
2022-01-07 99a29e294c6150aaa8369c592a3bbb91defe58fd
src/main/java/com/hx/util/mysql/aes/MysqlHexAes.java
@@ -45,7 +45,7 @@
            decryptCipher.init(Cipher.DECRYPT_MODE, generateMySQLAESKey(aesKey, encoding));
            data = new String(decryptCipher.doFinal(Hex.decodeHex(data.toCharArray())));
        }catch (Exception e){
            throw new RuntimeException("解密失败:"+e.getMessage());
            throw new RuntimeException(e);
        }
        return data;
    }
@@ -71,7 +71,7 @@
            }
            data = builder.toString().toUpperCase();
        } catch (Exception e) {
            throw new RuntimeException("加密失败:"+e.getMessage());
            throw new RuntimeException(e);
        }
        return data;
    }