-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Encrypt user credentials using jasypt
PostPosted: Tue Jun 17, 2008 4:37 pm 
Newbie

Joined: Wed Dec 19, 2007 11:04 am
Posts: 10
Hi,

I wants to encrypt my database password in hibernate config file.
I red some documents reg usage of jasypt. But i couldn't get any example to go thru.

Please provide me some samples on this. or if you have any alternate way please update me.

thanks,
lakshmi.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 18, 2008 4:11 am 
Newbie

Joined: Wed Jan 31, 2007 10:18 pm
Posts: 10
Hi,

In this page:

http://www.jasypt.org/encrypting-configuration.html

There is a section called "Database password encryption in hibernate.cfg.xml" which will help you.

Regards,
Daniel.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 18, 2008 9:34 am 
Newbie

Joined: Wed Dec 19, 2007 11:04 am
Posts: 10
Daniel,

Thanks for the reply, i also seen these links.
But i could not get any example anywhere.

I see

<property name="connection.password">ENC(G6N718UuyPE5bHyWKyuLQSm02auQPUtm)</property>


in hibernate config file.

But i dont know how they have got "G6N718UuyPE5bHyWKyuLQSm02auQPUtm" and how it is used to map with actual password.

Please throw me some light.

Thanks,
Lakshmi


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 18, 2008 10:21 am 
Newbie

Joined: Wed Jan 31, 2007 10:18 pm
Posts: 10
laknarayan wrote:
Daniel,
But i dont know how they have got "G6N718UuyPE5bHyWKyuLQSm02auQPUtm" and how it is used to map with actual password.


Well... that "they" is, in fact, "me" :-)

You can get encrypted values for your passwords using the Command-Line Interface tools (CLI). Have a look at:

http://www.jasypt.org/cli.html

Regards,

Daniel Fernández - Jasypt project leader.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 01, 2008 6:40 am 
Newbie

Joined: Wed Jul 09, 2008 2:10 am
Posts: 5
check this http://forum.hibernate.org/viewtopic.php?p=2391734


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.