src/main/java/com/hx/util/mysql/aes/MysqlHexAes.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
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; }