SSSD / sssd

A daemon to manage identity, authentication and authorization for centrally-managed systems.
https://sssd.io
GNU General Public License v3.0
602 stars 247 forks source link

password cache: use a better hash algorithm #4473

Open sssd-bot opened 4 years ago

sssd-bot commented 4 years ago

Cloned from Pagure issue: https://pagure.io/SSSD/sssd/issue/3446


The SSSD password cache currently uses salted, iterated (5000 times) SHA-512. SHA-512 is designed for speed and is not an ideal password hash.

Investigate switching to a modern hash designed for password storage such as argon2 (or scrypt or bcrypt). Ideally the digest or implementation should be tunable for a particular time cost (e.g. 0.2 seconds) and memory cost.

Comments


Comment from jhrozek at 2017-07-19 22:00:02

This sounds like a fine idea, but nothing we need to implement in a hurry.

It would make for a nice thesis topic perhaps?


Comment from jhrozek at 2017-07-19 22:00:21

Metadata Update from @jhrozek:


Comment from thalman at 2020-03-11 14:10:43

Metadata Update from @thalman:


Comment from pbrezina at 2020-03-11 14:11:30

Metadata Update from @pbrezina:

andreboscatto commented 1 year ago

The default for Fedora since F35 is to use yescrypt as default hashing method for shadow passwords. It does make sense to move into that direction.