This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts 1.3.9 Password Reminder Action class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 1.3.9 Password Reminder Action class" Watch "Struts 1.3.9 Password Reminder Action class" New topic
Author

Struts 1.3.9 Password Reminder Action class

Niklas Rosencrantz
Ranch Hand

Joined: Apr 08, 2006
Posts: 49
Is this as it says "encryption" or just hashing with MessageDigest? Is this good enough? Should I use SHA? Are code conventions completely followed?
Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 460
I prefer that passwords are hashed, since this is non reversible. Of course there are hash tables to be able to be used as lookup tables, but this can be overcome using a salt source, like always adding something like *&username{^ to the password before hashing, or better off, you can add it to the hashed password, then rehash again. This makes it nearly impossible to lookup password.

Reversible encryption methods can be used if you have a strong encrypting method, and more importantly a strong key. As I said, hashing using MD5 with a salt source is really strong security, and I recommend that.


Visit my blog: http://jnassef.blogspot.com/
 
Don't get me started about those stupid light bulbs.
 
subject: Struts 1.3.9 Password Reminder Action class
 
Similar Threads
Struts 1 messageresources problem
What is struts?
encrypt password with jasypt and struts
struts locale
Can someone tell me why?