Spring Boot 注解加密隐私信息

1、注解字段:
@Column(name = "phone", length = 100)
@ColumnTransformer(read = "AES_DECRYPT(UNHEX(phone), 'aes_phone')", write = "HEX(AES_ENCRYPT(?, 'aes_phone'))")
private String phone;
2、原生SQL 查询加密数据:
SELECT AES_DECRYPT(UNHEX(s.phone),'aes_phone') FROM TABLSE s

上一篇:aes 和 rsa


下一篇:XCTF 攻防世界 Reverse新手题(no-strings-attached)