oss-sec mailing list archives
Re: Source of bad password hashing practices? MySQL manual...
From: Raphael Geissert <geissert () debian org>
Date: Wed, 9 Oct 2013 11:27:51 +0200
On 9 October 2013 01:57, Rich Felker <dalias () aerifal cx> wrote:
"Do not store cleartext passwords in your database. If your computer becomes compromised, the intruder can take the full list of passwords and use them. Instead, use SHA2(), SHA1(), MD5(), or some other one-way hashing function and store the hash value." (http://dev.mysql.com/doc/refman/5.7/en/security-guidelines.html)
They probably don't mention the use of ENCRYPT (think of it as an alias to crypt(3)) because it is not portable to Windows-based systems, but I find the following bit quite amusing: http://sources.debian.net/src/mysql-5.5/5.5.33+dfsg-1/sql/item_strfunc.cc?hl=1877#L1889 (yeah, that's in their implementation of ENCRYPT()) Cheers, -- Raphael Geissert - Debian Developer www.debian.org - get.debian.net
Current thread:
- Source of bad password hashing practices? MySQL manual... Rich Felker (Oct 08)
- Re: Source of bad password hashing practices? MySQL manual... gremlin (Oct 09)
- Re: Source of bad password hashing practices? MySQL manual... Alex Gaynor (Oct 09)
- Re: Source of bad password hashing practices? MySQL manual... Raphael Geissert (Oct 09)
- Re: Source of bad password hashing practices? MySQL manual... Seth Arnold (Oct 09)
- RE: Source of bad password hashing practices? MySQL manual... Christey, Steven M. (Oct 09)
- Re: Source of bad password hashing practices? MySQL manual... Chris Palmer (Oct 09)
- Re: Source of bad password hashing practices? MySQL manual... Kurt Seifried (Oct 09)
- Re: Source of bad password hashing practices? MySQL manual... Jeremy Stanley (Oct 09)
- RE: Source of bad password hashing practices? MySQL manual... Christey, Steven M. (Oct 09)
- Re: Source of bad password hashing practices? MySQL manual... gremlin (Oct 09)
- Re: Source of bad password hashing practices? MySQL manual... John Haxby (Nov 07)