title: encrypt a properties file for Ibatis
body: <p>I have a properties file containg the database username/password which i used it to manage ibatis connection with the database.</p>
  
  <p>What is the best way to encrypt this properties file to be secure.
  Actually I am using netbeans 6.8. Is there a way to encrypt this properties file while making packaging for the project, or any other way to prevent others to see the database credentials?</p>
  
  <p>I am using ibatis to connect to database in a java desktop application</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>thanks</p>