AES
chenjiahe
2022-01-07 e29546af6fcc89c64b17cee6de01ce2a963b33f4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.hx.common.annotations;
 
import java.lang.annotation.*;
 
/**
 * 指定mysql的AES加密字段
 * @author CJH
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface MysqlHexAes {
    /**秘钥字段*/
    String aesKeyField() default "";
    /**秘钥*/
    String aesKey();
    /**查询解密*/
    boolean selectDec() default false;
 
}