zerohero has asked for the wisdom of the Perl Monks concerning the following question:
I need to store passwords in a database, and obviously don't want to keep the plaintext passwords. Plaintext passwords should not be retrievable.
The canonical unix-y way to do this a long time ago was to take the plaintext password, run "crypt" on it and store it in the DB. To authenicate, you'd then take crypt and run it on the incoming password, and compare the result to what you had in the DB.
It's been awhile since I've given authentication much thought, and I'm assuming there is some new, better thing for this purpose than "crypt".
Can someone mention what the new encryption algorithm(s) is/are, for this purpose, and the perl libraries that wrap them? One requirement is "better than crypt" (which may be too low a bar to fall over after all these years). Obviously if something is far better than that's wonderful.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Storing encrypted passwords and validating
by Your Mother (Archbishop) on Mar 28, 2009 at 18:52 UTC | |
by ikegami (Patriarch) on Mar 28, 2009 at 19:29 UTC | |
|
Re: Storing encrypted passwords and validating
by dsheroh (Monsignor) on Mar 29, 2009 at 00:06 UTC | |
|
Re: Storing encrypted passwords and validating
by zwon (Abbot) on Mar 28, 2009 at 19:18 UTC | |
by zerohero (Monk) on Mar 28, 2009 at 23:53 UTC | |
|
Re: Storing encrypted passwords and validating
by zentara (Cardinal) on Mar 28, 2009 at 20:06 UTC | |
|
Re: Storing encrypted passwords and validating
by locked_user sundialsvc4 (Abbot) on Mar 28, 2009 at 21:28 UTC |