Skip to content

字段加解密(已拆分)

模块已拆分(v2.14.0 变更)

continew-starter-security-crypto 模块已在 v2.14.0 拆分为独立的加密模块系列,本页不再随新版本维护,请根据使用场景迁移到对应模块:

迁移要点

变更项旧(security-crypto)新(encrypt 系列)
依赖坐标continew-starter-security-cryptocontinew-starter-encrypt-field / continew-starter-encrypt-api / continew-starter-encrypt-password-encoder
配置前缀continew-starter.security.cryptocontinew-starter.encrypt.field / .api / .password-encoder
字段加密注解@FieldEncrypt(value 默认 AES)@FieldEncrypt(value 默认 DEFAULT,跟随配置属性的算法)
密码编码器@FieldEncrypt(encryptor = BCryptEncryptor.class)@FieldEncrypt(encryptor = PasswordEncoderEncryptor.class)(password-encoder 模块提供)
编程式加解密——EncryptHelper(encrypt-field 模块提供,@since 2.13.2