File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

password decoding help required

 
Kumar Gaurav
Ranch Hand
Posts: 108
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic