Re: sha1, sha2 functions into core?
От
Merlin Moncure
Тема
Re: sha1, sha2 functions into core?
Дата
Msg-id
CAHyXU0zpZCEhbMbdfc-aT_PNWf4wLRbJve=r6Gpu4cwgb9rpEQ@mail.gmail.com
Ответ на
Re: sha1, sha2 functions into core? (Joe Conway)
Список
Дерево обсуждения
sha1, sha2 functions into core? Peter Eisentraut <peter_e@gmx.net>
Re: sha1, sha2 functions into core? Tom Lane <tgl@sss.pgh.pa.us>
Re: sha1, sha2 functions into core? Peter Eisentraut <peter_e@gmx.net>
Re: sha1, sha2 functions into core? Magnus Hagander <magnus@hagander.net>
Re: sha1, sha2 functions into core? Marko Kreen <markokr@gmail.com>
Re: sha1, sha2 functions into core? Tom Lane <tgl@sss.pgh.pa.us>
Re: sha1, sha2 functions into core? Andrew Dunstan <andrew@dunslane.net>
Re: sha1, sha2 functions into core? Marko Kreen <markokr@gmail.com>
Re: sha1, sha2 functions into core? "Ross J. Reedstrom" <reedstrm@rice.edu>
Re: sha1, sha2 functions into core? Peter Eisentraut <peter_e@gmx.net>
Re: sha1, sha2 functions into core? "ktm@rice.edu" <ktm@rice.edu>
Re: sha1, sha2 functions into core? "Ross J. Reedstrom" <reedstrm@rice.edu>
Re: sha1, sha2 functions into core? "ktm@rice.edu" <ktm@rice.edu>
Re: sha1, sha2 functions into core? Daniel Farina <daniel@heroku.com>
Re: sha1, sha2 functions into core? Marko Kreen <markokr@gmail.com>
Re: sha1, sha2 functions into core? "David E. Wheeler" <david@kineticode.com>
Re: sha1, sha2 functions into core? Andrew Dunstan <andrew@dunslane.net>
Re: sha1, sha2 functions into core? Robert Haas <robertmhaas@gmail.com>
Re: sha1, sha2 functions into core? Peter Eisentraut <peter_e@gmx.net>
Re: sha1, sha2 functions into core? Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: sha1, sha2 functions into core? Magnus Hagander <magnus@hagander.net>
Re: sha1, sha2 functions into core? Dave Page <dpage@pgadmin.org>
Re: sha1, sha2 functions into core? Peter Eisentraut <peter_e@gmx.net>
Re: sha1, sha2 functions into core? Bruce Momjian <bruce@momjian.us>
Re: sha1, sha2 functions into core? Marko Kreen <markokr@gmail.com>
Re: sha1, sha2 functions into core? Tom Lane <tgl@sss.pgh.pa.us>
Re: sha1, sha2 functions into core? Joe Conway <mail@joeconway.com>
Re: sha1, sha2 functions into core? Andrew Dunstan <andrew@dunslane.net>
Re: sha1, sha2 functions into core? Bruce Momjian <bruce@momjian.us>
Re: sha1, sha2 functions into core? Andrew Dunstan <andrew@dunslane.net>
Re: sha1, sha2 functions into core? Merlin Moncure <mmoncure@gmail.com>
Re: sha1, sha2 functions into core? Joe Conway <mail@joeconway.com>
Re: sha1, sha2 functions into core? Bruce Momjian <bruce@momjian.us>
Re: sha1, sha2 functions into core? "Greg Sabino Mullane" <greg@turnstep.com>
Re: sha1, sha2 functions into core? Merlin Moncure <mmoncure@gmail.com>
Re: sha1, sha2 functions into core? Josh Berkus <josh@agliodbs.com>
Re: sha1, sha2 functions into core? Andrew Dunstan <andrew@dunslane.net>
Re: sha1, sha2 functions into core? Josh Berkus <josh@agliodbs.com>
Re: sha1, sha2 functions into core? "Joshua D. Drake" <jd@commandprompt.com>
Re: sha1, sha2 functions into core? Andrew Dunstan <andrew@dunslane.net>
Re: sha1, sha2 functions into core? "Joshua D. Drake" <jd@commandprompt.com>
Re: sha1, sha2 functions into core? Tom Lane <tgl@sss.pgh.pa.us>
Re: sha1, sha2 functions into core? Bruce Momjian <bruce@momjian.us>
Re: sha1, sha2 functions into core? Andrew Dunstan <andrew@dunslane.net>
Re: sha1, sha2 functions into core? "Joshua D. Drake" <jd@commandprompt.com>
Re: sha1, sha2 functions into core? Peter Geoghegan <peter@2ndquadrant.com>
Re: sha1, sha2 functions into core? Marko Kreen <markokr@gmail.com>
On Wed, Aug 15, 2012 at 10:22 AM, Joe Conway wrote: > On 08/15/2012 06:48 AM, Tom Lane wrote: >>> On Wed, Aug 15, 2012 at 6:11 AM, Bruce Momjian wrote: >>>> Is there a TODO here? >> >> If anybody's concerned about the security of our password storage, >> they'd be much better off working on improving the length and randomness >> of the salt string than replacing the md5 hash per se. > > Or change to an md5 HMAC rather than straight md5 with salt. Last I > checked (which admittedly was a while ago) there were still no known > cryptographic weaknesses associated with an HMAC based on md5. There is no cryptographic with md5 either really. The best known attack IIRC is 2^123 (well outside of any practical brute force search) and the algorithm is very well studied. The main issue with md5 is that it's fast enough that you can search low entropy passwords (rainbow tables etc) which does not depend on the strength of the hashing algorithm. If the hacker has access to the salt, then it will only slow him/her down somewhat because the search will be have to be restarted for each password. The sha family are engineered to be fast and are therefore not meaningfully safer IMO. Ditto NIST hash function (upcoming sha-3) that Andrew is mentioning downthread (that might be a good idea for other reasons but I don't really think it's better in terms of securing user password). If you want to give the user good password security, I think you have only two choices: 1) allow use hmac as you suggest (but this forces user to maintain additional password or some token) 2) force or at least strongly encourage user to choose high entropy password A lot of people argue for 3) use a purposefully slow hashing function like bcrypt. but I disagree: I don't like any scheme that encourages use of low entropy passwords. merlin
В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата: