EB-BENCH v1.0 · OPEN EMPIRICAL LAB

Argon2id vs. scrypt vs. PBKDF2-SHA256

Key derivation functions trade server milliseconds for attacker hardware cost. The decisive boundary is not raw CPU cycle count—it is memory hardness against high-VRAM GPU rigs and custom ASIC arrays.

1. Live 3-Way OWASP Baseline Calibration

Time all three OWASP 2026–2027 reference floors side-by-side inside a local Web Worker (hash-wasm Argon2id, Noble scrypt, and WebCrypto PBKDF2).

Tune custom costs in KDF Calibrator →
Ready. Executes locally under connect-src 'none'.
Algorithm OWASP Baseline Local Elapsed Hardware Bottleneck
Argon2id (WASM) m=19 MiB, t=2, p=1 Click run Memory-hard + side-channel hybrid
scrypt (Noble JS) N=32768 (2¹⁵), r=8, p=1 Click run Memory-hard (32 MiB sequential)
PBKDF2-HMAC-SHA256 600,000 iterations Click run CPU-bound (~0.01 MiB cache only)

2. OWASP 2026–2027 Parameter Reference

KDF Minimum Compliant Floor Primary Strength Main Limitation
Argon2id (RFC 9106) 19 MiB RAM, t=2, p=1 (or 46 MiB, t=1) Combines Argon2i side-channel safety + Argon2d GPU resistance Requires native or WASM binding outside WebCrypto
scrypt (RFC 7914) N=2¹⁵ (32 MiB), r=8, p=1 Widely deployed in Go/Node stdlibs Higher RAM per single-pass floor; lacks Argon2i passes
PBKDF2-SHA256 600,000 iterations (salt >= 128-bit) FIPS 140-3 validated; native in WebCrypto everywhere Trivial to parallelize in ASIC/GPU ALU pipelines

3. Why Memory Hardness Dominates Crack Economics

An RTX 4090/5090 holds over 16,000 CUDA cores but a fixed pool of VRAM and memory bus bandwidth. Because PBKDF2 runs inside per-thread registers, every core evaluates guesses at full speed; raising iterations only scales linearly. In contrast, Argon2id forces each active attempt to allocate and randomly traverse 19–64 MiB of DRAM, capping concurrent GPU threads by memory size and memory bandwidth rather than ALU count.

4. Selection Checklist

  • New Password Storage & User Auth: Use Argon2id calibrated to your login latency budget via the 250 ms target solver.
  • Zero-Dependency Node / Go Backends: Use scrypt (N=32768, r=8, p=1) where native libargon2 is unavailable.
  • Strict FIPS-140 / Browser-Native WebCrypto Envelopes: Use PBKDF2-HMAC-SHA256 at ≥ 600,000 iterations paired with a strong random passphrase.

5. Cite This Monograph (BibTeX & Markdown)

BibTeX
@techreport{encryptbench2026kdf,
  title       = {Argon2id vs. scrypt vs. PBKDF2-SHA256: OWASP 2026–2027 Password KDF Comparison},
  author      = {{EncryptBench Empirical Lab}},
  year        = {2026},
  month       = nov,
  institution = {EncryptBench},
  note        = {EB-Bench v1.0 Monograph CMP-02, zero-upload connect-src none harness},
  url         = {https://encryptbench.com/compare/argon2id-vs-scrypt-vs-pbkdf2/}
}
Markdown
[Argon2id vs. scrypt vs. PBKDF2-SHA256: OWASP 2026–2027 Password KDF Comparison](https://encryptbench.com/compare/argon2id-vs-scrypt-vs-pbkdf2/) — *EncryptBench Empirical Lab* (EB-Bench v1.0 Monograph CMP-02, Nov 2026).