I'm looking for a way to store encrypted text in a properties' file, and then decrypt it on the fly, something that allows something like:
- Store password in encrypted form in properties' file
- When Spring reads that property from a placeholder, it automatically decrypts it and loads the plain text value
After searching the web, all I found was Jasypt. I gave it a test run, and it does what I need, but it seems abandoned? (Last commit activity was 2 years ago).
So far, I've replaced Spring's PropertyPlaceholderConfigurer to detect encrypted values and to decrypt them before loading, and managed to get it working.
However, since it's security, I'm somewhat worried that rolling my own solution isn't the best way to do this. Are there any coding particulars I should be aware of when hosting my own encryption/decryption capabilities (even though I'm using Java's built-in functions underneath)? Or is it safer to go with a possibly abandoned, but well known project than to roll my own?
Thank you.
EDIT: edited to stay on-topic.