Pages

Affichage des articles dont le libellé est crypter. Afficher tous les articles
Affichage des articles dont le libellé est crypter. Afficher tous les articles

crypter password dans persistence.xml sujet

jeudi 30 janvier 2014




Bonjour,

je débute dans la programmation java Spring/hibernate.

j'ai un fichier persistence.xml :

<?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














Fichiers attachés





Type de fichier : rar esfsefsefes.rar (1,53 Mo)