I'm using JPA in my application and so I have a persistence.xml
file that contains the connection data with my database:
<property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost/banco" />
<property name="javax.persistence.jdbc.user" value="admin" />
<property name="javax.persistence.jdbc.password" value="123456" />
<property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" />
<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQL9Dialect" />
I would not like to commmit passwords and plain text users, so I would like to know if anyone knows any SMART alternatives to manage sensitive data in my application, some encryption mechanism, for example.