jQuery in Action, 3rd edition
The moose likes Spring and the fly likes spring mvc authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "spring mvc authentication" Watch "spring mvc authentication" New topic

spring mvc authentication

sal sathya

Joined: Jul 28, 2010
Posts: 11
hi there,
in an web application we are using authentication by spring,

but the problem is where a user is created the password is encoded with md5 + some logical password,
if i uses

the password is not decoding and i can't login ,how to write a custom decode class and pass that password

please help.
Murali Ranga
Ranch Hand

Joined: Dec 16, 2011
Posts: 38
Message digest functions use one-way functions and it is infeasible to reverse/decrypt the message digest and discover the original data
For comparing the data/password,
The Enter password needs to encrypted and compared with the already existing encrypted data
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Also, in Spring Security when it sees you are using MD5, and you do the login form with j_username and j_password, the Spring Security will automatically encode the incoming password to then match against what is encoded in the database and authenticate for you.

What are you doing that is different?


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link: http://aspose.com/file-tools
subject: spring mvc authentication
It's not a secret anymore!