title: Encrypting db password in application.conf
body: <p>Play framework [I'm using v1.2.3] does not support db password encryption stored in the application.conf. This is stored as a plain-text file. DBPlugin reads this property and creates a Connection pool. </p>
  
  <p>The requirement is to encrypt this password - for e.g. using <a href="http://www.jasypt.org/" rel="noreferrer">Jasypt</a>. Some enterprises enforce this as a security measure.</p>
  
  <p>Has anybody tried doing something like this?</p>
  
  <p>Since DBPlugin loads on ApplicationStart, there is no way to hack it. That leaves to write a custom plugin and <a href="http://www.playframework.org/documentation/api/1.2.3/play/PlayPlugin.html#onConfigurationRead%28%29" rel="noreferrer">onConfigurationRead</a> set a new value for the db.password of application.conf property. </p>
  
  <p>Any suggestions?</p>