woollay / bq-encryptor

1.支持国际上通用的加密算法:RSA(1024/2048)/AES(128/192/256)/3DES(DESede)/PGP/SHA-1/SHA-256/SHA-512/SHA-3/HmacSHA256/Hmac-SHA512/MD5;2.也支持国密算法:SM2/SM3/SM4/HmacSM3/HSM;3.抽象并融合了上述2套加密算法,希望对你有用
Apache License 2.0
5 stars 1 forks source link

jasypt #1

Closed sunxpin closed 1 year ago

sunxpin commented 1 year ago

为啥加了jasypt-springboot-starter之后启动一直报 either 'jasypt.encryptor.password'的错误呢

String Encryptor custom Bean not found with name 'jasyptStringEncryptor'. Initializing Default String Encryptor Application run failed

java.lang.IllegalStateException: either 'jasypt.encryptor.password', one of ['jasypt.encryptor.private-key-string', 'jasypt.encryptor.private-key-location'] for asymmetric encryption, or one of ['jasypt.encryptor.gcm-secret-key-string', 'jasypt.encryptor.gcm-secret-key-location', 'jasypt.encryptor.gcm-secret-key-password'] for AES/GCM encryption must be provided for Password-based or Asymmetric encryption at com.ulisesbocchio.jasyptspringboot.configuration.StringEncryptorBuilder.build(StringEncryptorBuilder.java:35) ~[jasypt-spring-boot-3.0.4.jar:na] at com.ulisesbocchio.jasyptspringboot.encryptor.DefaultLazyEncryptor.createDefault(DefaultLazyEncryptor.java:47) ~[jasypt-spring-boot-3.0.4.jar:na]`