Comments (8)
do you have a sample app I can take a look? Also please check out the samples in the samples repository. There's a variety of small projects that cover all the capabilities and combinations of configurations available.
from jasypt-spring-boot.
Hi, thanks for your reply. I was simply using the sample app CustomEncryptorDemoApplication.java by adding @EnableEncryptableProperties which cause the app to use default encryptor. Later on I was able to get around it by declare the the jasyptStringEncryptor in a class and then import the class before @EnableEncryptableProperties. I think this has something to do with the sequnece of which bean is created.
from jasypt-spring-boot.
It might be, it would be great if you can paste the code here, or point me to a repo where you see the issue so I can troubleshoot it, or if you think this is no longer an issue please let me know so I can close the ticket
from jasypt-spring-boot.
@binzou2017 @enableencryptableproperties causing the app to use default encryptor. In the above comment you mentioned that you were able to fix this issue by adding jasyptStringEncryptor in class and then importing the class before @enableencryptableproperties. Can you please share code example how you did that exactly?
from jasypt-spring-boot.
I was able to reproduce the issue, working on the fix.
For now you can do this to get the same result you should get with @EnableEncryptableProperties
:
public static void main(String[] args) {
new SpringApplicationBuilder().sources(CustomEncryptorDemoApplication.class, EnableEncryptablePropertiesConfiguration.class).run(args);
}
Make sure to put the EnableEncryptablePropertiesConfiguration.class
last in the list of sources.
from jasypt-spring-boot.
I fixed the issue in MASTER, it'll be released soon
from jasypt-spring-boot.
new version 1.13 is out, enjoy
from jasypt-spring-boot.
from jasypt-spring-boot.
Related Issues (20)
- 3.x.x 以后可以自定义加密器吗,配置jasypt.encryptor.bean的方式
- GraalVM native app startup with errors. HOT 1
- Windows and Linux compatibility issues HOT 3
- AES256GCM, Base64 decod of key file failed...
- StackOverflowError with SpringBoot 3.1.5 and jasypt-spring-boot-starter 3.0.5 with ${cors.origins.allowed:#{http://localhost:4200}} HOT 2
- jasypt not decrypting already encrypted property (i.e in application.properties file) in xml based configuration spring boot project HOT 3
- Usage of StandardEncryptableEnvironment with additional active profile(s) and custom prefix and suffix breaks decryption
- String Encryptor custom Bean not found with name 'jasyptStringEncryptor' after upgrading to AWS CLOUD Spring3(implementation platform("io.awspring.cloud:spring-cloud-aws-dependencies:3.0.4)
- Source code to refer in order to understanding how jasypt able to "intercept" and "massage" the configuration value
- NoSuchAlgorithmException: SHA1PRNG SecureRandom not available HOT 1
- nacos password decryption in application.yml HOT 2
- jasypt-spring-boot-starter-3.0.5 does not work with springboot latest version 3.2.2
- When will the service "jasypt-spring-boot" 3.0.5 end?
- Is this project still maintained?
- Is there a plan for the project to support jdk17?
- jasypt.encryptor.password property is treated as sensitive by code scan tools
- can not decrypt in spring cloud alibaba 20222.0.0.0 with nacos
- Stack overflow when config is AA=${AA}
- jasypt: ecryption of Properties failed, make sure encryption/decryption passwords match apres upgrading from version 2.3 to 3.0.5 HOT 1
- one and the same project got two mvn result by Mac and Win
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jasypt-spring-boot.