title: Password Encryption in Hikaricp
body: <p>I am using HikariCP in a spring project. 
  Right now, I defined a connection like this </p>
  
  <pre><code>&lt;bean id="hikariConfigLegacyReasonCode" class="com.zaxxer.hikari.HikariConfig"&gt;
      &lt;property name="poolName" value="HikariCPReasonCodePool" /&gt;
      &lt;property name="connectionTestQuery" value="SELECT 1" /&gt;
      &lt;property name="dataSourceClassName" value="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"/&gt;
      &lt;property name="registerMbeans" value="true"/&gt;
      &lt;property name="maximumPoolSize" value="15"/&gt;
       &lt;property name="idleTimeout" value="60000"/&gt;
       &lt;property name="connectionTimeout" value="5000" &gt;&lt;/property&gt;
  
      &lt;property name="dataSourceProperties"&gt;
          &lt;props&gt;
               &lt;prop key="url"&gt;jdbc:mysql://${LegacyReasonCodeIp}&lt;/prop&gt;
               &lt;prop key="user"&gt;${LegacyReasonCodeUsername}&lt;/prop&gt;
               &lt;prop key="password"&gt;${LegacyReasonCodePassword}&lt;/prop&gt;
               &lt;prop key="cachePrepStmts" &gt;true&lt;/prop&gt;
               &lt;prop key="prepStmtCacheSize" &gt;250&lt;/prop&gt;
               &lt;prop key="prepStmtCacheSqlLimit" &gt;2048&lt;/prop&gt;
               &lt;prop key="useServerPrepStmts" &gt;true&lt;/prop&gt;    
  
          &lt;/props&gt;
      &lt;/property&gt;
  </code></pre>
  
  <p></p>
  
  <p>Here, Server name , username and password will be loaded from a property file. Is there any way to store the DB password in the property file in encrypted manner ? </p>