Expand description
pbkdf2-sha1 derivation parameterization: PBKDF2 over HMAC-SHA-1, for
compatibility with existing password databases that fix it. The
construction is not affected by SHA-1’s collision attacks (PBKDF2
relies on HMAC’s PRF property), but prefer
pbkdf2_sha2 where the parameters are yours to
choose.
The Password resource and its import stay
pbkdf2’s, so one imported password can parameterize
derivations over either hash family.
Functions§
- prepare
- Parameterize a PBKDF2-HMAC-SHA-1 derivation over an imported password.
See
pbkdf2_sha2::preparefor thesaltanditerationscontracts.