wood burning stoves 2.0*
The moose likes Spring and the fly likes password decoding help required Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "password decoding help required" Watch "password decoding help required" New topic
Author

password decoding help required

Kumar Gaurav
Ranch Hand

Joined: Apr 08, 2008
Posts: 108
Hi All,

I am encoding password text using org.acegisecurity.providers.encoding.Md5PasswordEncoder and org.acegisecurity.providers.dao.SaltSource
using following code

PasswordEncoder encoder = new Md5PasswordEncoder();
encoder.encodePassword(this.password.trim(), this.getSaltSource());


Now i need to decode the same. i tried a lot but didnot succeed.

Any suggestion how to do it.

TIA


Regards,
Gaurav
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41105
    
  45
I'm not familiar with that particular class, but MD5 is not an encoding - it is cryptographic hash which cannot be reversed. If you want to compare it to a newly entered password, then you need to run that password through the Md5PasswordEncoder as well, and compare the results.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: password decoding help required
 
Similar Threads
Struts two filed comparison
Help with my homework please
Password Filed Not Masked Vulnerability..
Problem in SQL (MySQL) select password column
Hide password in Mozilla's Http Header plugin