• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Encryption of properties file.

 
chitti mars
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 104
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your reply..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic