• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

spring mvc authentication

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?

Mark
 
reply
    Bookmark Topic Watch Topic
  • New Topic