File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Encryption of properties file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Encryption of properties file." Watch "Encryption of properties file." New topic
Author

Encryption of properties file.

chitti mars
Greenhorn

Joined: Oct 23, 2011
Posts: 3
I have db params in properties file.. at startup i need to encrypt the sensitive data and overwrite the properties file (with encrypted values). and while getting the db connection i need to decrypt internally and use for connection.
I am using spring web services.

Any suggestions please.
sammaiah kyatham
Ranch Hand

Joined: Aug 03, 2003
Posts: 104
I would suggest you to implement a simple encryption and decryption algorithms and use it only for specific properties, this is how I followed in one of the project.

Here is the approach:

username=admin
password=enc:%^%#$#

if any property value starts with enc:, then write a logic to decrypt before use it. Hope this helps.


chitti mars
Greenhorn

Joined: Oct 23, 2011
Posts: 3
thanks for your reply..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Encryption of properties file.
 
Similar Threads
JDBC Connection Pool Password Encryption
calling properties files from static class
create tables using java code by fetching from .sql file
Want to change Application Property at startup
connection pool problem ,