Password Verifiers, Salts, and Work Factors

Store a derived password verifier with a per-record salt and plan for changing the derivation cost without storing the original secret.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. A verifier defines a reproducible protected calculation
  2. Upgrade only when the needed input is available

A verifier defines a reproducible protected calculation

Store the salt, chosen algorithm parameters and derived verification value. On authentication, use the submitted password with the same salt and parameters and compare the result under the library’s verification interface. A random per-record salt makes equal passwords yield independent verification inputs. The salt is stored because it must be reused for the check. A dedicated password derivation construction is designed to make each evaluation appropriately costly.

Upgrade only when the needed input is available

When a supplied password has just verified successfully, derive a new verifier if its record uses obsolete parameters, and update it safely without retaining the input. System-wide resource estimates must account for legitimate concurrent verification. Recovery and authenticator management remain separate account flows. Cryptographic hash properties explain why an ordinary fast digest serves a different purpose.[1][2]

References

  1. NIST, Digital Identity Guidelines: Authentication and Authenticator Management ↩
  2. Dan Boneh and Victor Shoup, A Graduate Course in Applied Cryptography ↩