1 pièce(s) jointe(s)
Crypter password dans persistence.xml
Bonjour,
je débute dans la programmation java Spring/hibernate.
j'ai un fichier persistence.xml :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| <?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="cosapexdev" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<properties>
<property name="hibernate.connection.driver_class" value="oracle.jdbc.driver.OracleDriver" />
<property name="hibernate.connection.url" value="chemin" />
<property name="hibernate.connection.user" value="PORTAIL" />
<property name="hibernate.connection.password" value="password" />
<property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect" />
<property name="hibernate.show_sql" value="true" />
<property name="hibernate.format_sql" value="true" />
<property name="hibernate.default_schema" value="PORTAIL" />
</properties>
</persistence-unit>
</persistence> |
j'aimerai crypter le password pour pas qu'il soit affiché en clair dans persistence.xml
j'ai vu que jasypt le fait, or il se trouve que je n'arrive pas a comprendre son fonctionnement.
je vous joint mon projet entier.
comment puis-je procéder pour crypter le mote de passe ?
merci d'avance.
Cédric