title: Can JPA use encrypted password for database connection
body: <p>I have Spring JPA configuration as below</p>
  
  <pre><code>&lt;bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close" &gt;
      &lt;property name="driverClassName" value="${jdbc.driverClassName}" /&gt;
      &lt;property name="url" value="${jdbc.url}" /&gt;  
      &lt;property name="username" value="${jdbc.username}" /&gt;
      &lt;property name="password" value="${jdbc.password}" /&gt;
  &lt;/bean&gt;
  
  &lt;bean id="emf" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean" &gt;
      &lt;property name="dataSource" ref="dataSource" /&gt;
      &lt;property name="jpaVendorAdapter" ref="vendorAdaptor" /&gt;         
      &lt;property name="packagesToScan" value="pk.training.model"/&gt;
      &lt;property name="jpaProperties"&gt;
          &lt;props&gt;
              ...
              &lt;prop key="hibernate.show_sql"&gt;true&lt;/prop&gt;              
          &lt;/props&gt;        
      &lt;/property&gt;
  &lt;/bean&gt; 
  </code></pre>
  
  <p>I have properties file in which i have password like </p>
  
  <pre><code>jdbc.password=abc123
  </code></pre>
  
  <p>When my application runs, spring context loads and makes connection to database. Fine. Now I want to ask suppose i give password in encrypted form, like</p>
  
  <pre><code>jdbc.password=$53ytg#@!
  </code></pre>
  
  <p>Now how JPA connect to database ? Is there any property by which JPA handles encrypted password by itself or I have to do some thing on my own ?</p>
  
  <p>Thanks.</p>