From 3477046445264ab06bb66972aca69566caa11ae1 Mon Sep 17 00:00:00 2001 From: chenjiahe <763432473@qq.com> Date: 星期三, 09 二月 2022 17:54:26 +0800 Subject: [PATCH] Mysql数据库AES加密工具,解密的时候判断是不是16进制的数据 --- src/main/java/com/hx/common/annotations/MysqlHexAes.java | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/hx/common/annotations/MysqlHexAes.java b/src/main/java/com/hx/common/annotations/MysqlHexAes.java index a143106..8e5d753 100644 --- a/src/main/java/com/hx/common/annotations/MysqlHexAes.java +++ b/src/main/java/com/hx/common/annotations/MysqlHexAes.java @@ -10,11 +10,15 @@ @Retention(RetentionPolicy.RUNTIME) @Documented public @interface MysqlHexAes { - /**绉橀挜瀛楁*/ - String aesKeyField() default ""; - /**绉橀挜*/ - String aesKey(); - /**鏌ヨ瑙e瘑*/ + /**绉橀挜-娌℃湁灏辨槸閰嶇疆鏂囦欢璁剧疆*/ + String aesKey() default ""; + /**鏁版嵁搴撴暟鎹垵濮嬪寲鐗堟湰*/ + String initVersion() default ""; + /**xml鐢熸垚鏌ヨ瑙e瘑*/ boolean selectDec() default false; + /**xml鏇存柊鍔犲瘑*/ + boolean updateDec() default false; + /**xml鏂板鍔犲瘑*/ + boolean insertDec() default false; } \ No newline at end of file -- Gitblit v1.8.0