They are all password-hash families, but they differ in how they store parameters and how much metadata must be preserved for verification. Some formats are self-describing, while others rely on separate fields or vendor-specific configuration. Migration success depends less on the brand of algorithm and more on whether all verification inputs survive the move.
Why these hash families differ during migration
The practical difference is not just the algorithm name. bcrypt, scrypt, PBKDF2 and Argon2 each encode or depend on parameters differently, so a migration succeeds only if the verifier can reconstruct the original hash context exactly. In other words, portability depends on preserving the full verification recipe, not merely the password hash value.
Self-describing formats reduce migration friction because the hash string carries the work factors, salt and algorithm marker with it. Where a system stores those values separately, or only through application or vendor configuration, the migration must carry that metadata forward intact or verification will fail after cutover.
The most important operational distinction is therefore between password hashing and key derivation handling that preserves all parameters and schemes that require external state to be rebuilt. Argon2 is commonly deployed in a self-describing form, while legacy bcrypt, scrypt and PBKDF2 deployments often vary in how much is embedded versus managed elsewhere.
What usually breaks when moving between bcrypt, scrypt, PBKDF2 and Argon2
Migration failures usually come from one of three places: lost salt data, lost work-factor metadata, or a verifier that assumes the old algorithm shape and cannot parse the new one. That is why a move can fail even when the underlying passwords have not changed. The risk is especially high when hashes were produced by multiple services, old libraries, or vendor-specific wrappers.
Another common issue is accidental normalization. Truncation rules, string encoding, delimiter handling and field-length limits can all corrupt the stored value or the parameters attached to it. That matters because the comparison step is exact, and even a small metadata mismatch can make every login look invalid.
Hashing guide is the right companion when you need to check whether the migration design preserves salts, parameters and representation rules rather than assuming the hash family itself is the only variable. For broader password policy and lifecycle context, Password Security and Password Manager Guide helps place the migration inside the larger authentication control set.
How to compare them in a real migration plan
For a migration, compare the families by portability and reconstruction effort. If the stored format is self-contained, you can usually migrate by copying the record and preserving its semantics. If the format is split across columns, config files or code defaults, you need a mapping layer that reassembles the verifier input exactly before authentication is attempted.
That is also why the safest approach is often to support both old and new verifiers during a transition window, then rehash on successful login. This avoids forcing a bulk password reset when the old record can still be validated once and replaced with the new standard. When the old hash cannot be interpreted reliably, a controlled reset is safer than guessing at parameter translation.
Secrets manager migration playbook is useful here because the same migration principle applies: preserve the full verification inputs, translate only what can be translated safely, and decommission the old path only after the new one has been proven. When you need a deeper control view of password storage choices and tuning, OWASP Top 10 A04 Guide covers cryptographic failure patterns that often show up in password storage projects.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST SP 800-53 Rev 5 and OWASP ASVS set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | Password hash migration preserves authenticators and their verification data. |
| IA-2 — Identification and Authentication (Organizational Users) | Password migration affects how users are authenticated after cutover. | |
| Recommendation — Preserve and rotate authentication data so migrated password verifiers still validate correctly. Verify migrated password records still support user authentication before decommissioning the old store. | ||
| OWASP ASVS | V6 — Authentication | Password hash families and verifier handling are core ASVS authentication concerns. |
| V11 — Cryptography | Hash choice, parameters and storage format are cryptographic implementation details in the migration. | |
| Recommendation — Check that password storage and verification preserve all required authentication parameters during migration. Validate cryptographic storage formats and parameter handling before switching password hash implementations. | ||
| ISO/IEC 27001:2022 | A.8.24 — Use of cryptography | Password hashing migration is part of cryptographic control selection and handling. |
| Recommendation — Document and control password-hash settings so migrated records remain verifiable. | ||
Practitioner Guidance
What to verify: Confirm whether each legacy record is self-describing or whether the algorithm, salt length, cost factor, memory setting and encoding are held outside the stored hash. If any part lives elsewhere, treat that external state as migration-critical data.
Decision rule: If you can preserve every verification input exactly, migrate and support dual verification during cutover. If you cannot, do not attempt a blind transform, because that can silently break authentication for valid users.
What good looks like: The new platform can validate old records, successful logins are rehashed into the target format, and the team can prove that no password-check dependency was lost when the source system was retired.
Practitioner takeaway: The algorithm label is less important than record fidelity. Safe migration means preserving the full verification context, then replacing old hashes only after you have a working validation path on the new side.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 23, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org