Often password information is kept in a properties file for some Java based application. Password often needs to be changed so having them in properties file is a convenient way to update password without changing and recompiling source java code. However this convenience puts the password exposed in a text based properties file. For example Java application may store a database connection password in a properties file. This tutorial will show how to encrypt a password text stored in a properties file and retrieve the password later through a decryption process. JSypt will be used for encryption and decryption task. Apache Commons Configuration project will be used to easily manipulate properties file.
Read full article from How to Encrypt Decrypt a Password Stored in a Properties File with Java + Jasypt + Apache Commons Configuration - MarinatedMarinated
No comments:
Post a Comment