MD-5 password encryption and the "secret key"
According to a post on the Struts User mailing list, it's possible to encrypt a password using MD-5 (which is one-way), stuff it into a cookie, and then use a server's "secret key" to verify that it's a good one. Since I'm guilty of storing base64 encrypted passwords in cookies for a "Remember Me" feature, I'd love to figure out a more secure way of doing this.
So the question is - is it possible to implement "Remember Me" in J2EE in a secure way?
Setting the cookies on a certain path (i.e. /roller/security/) works, but not on Tomcat 5. I want to securely set my userid/password/rememberMe cookies at the root level of my app, map a filter to login.jsp (dispatcher = forward for TC 5) and be done with it.
Posted by Dave Johnson on January 14, 2004 at 06:41 PM MST #
Posted by Matt Raible on January 14, 2004 at 06:49 PM MST #
Posted by Matt Raible on January 14, 2004 at 07:06 PM MST #
Posted by Bear Giles on January 15, 2004 at 02:13 AM MST #
Does this mean that remember-me would only be good while the server is running? That is, remember me would work only until the server crashes? If not, I dig your solution and will give it a wack in the coming days (weeks?). If it's not persistent between server restarts, that would suck as I'm *always* restarting the server during development and Remember Me is an awesome way to be more efficient (no logging in when testing through a browser).
Posted by Matt Raible on January 15, 2004 at 05:25 AM MST #
Posted by Bear Giles on January 15, 2004 at 07:48 PM MST #