This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 17271

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 - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Have you checked out Aspose?
subject: spring mvc authentication
jQuery in Action, 3rd edition