About

Tool No. 92 of Pikkola, 28 November 2026

A password hash is deliberately slow. This page derives a key with WebCrypto, writes it as a record that carries its own parameters, verifies a stored hash in constant time, and measures the milliseconds an iteration count takes on this machine.

What it does

The record must carry its parameters

A key with no count and no salt cannot be recomputed, and a database of bare hashes cannot be upgraded when the guidance moves. The line this page writes keeps the scheme, the count, the salt and the key, which is also the shape Django uses.

The count is a cost, not a magic number

Each iteration is one more HMAC, so the defender and the attacker pay the same multiplication. A published figure is a starting point; the benchmark here turns it into milliseconds on the hardware that will run the login, which is the number that decides.

PBKDF2 is the fallback, and the page says so

Argon2id makes memory the cost, and a graphics card has far less memory bandwidth than hash throughput, which is why it is the current recommendation. PBKDF2 is the right answer where a standard, a library or a compliance rule asks for it.

What it is not

It is not a password manager and not a secret store. It derives, records and verifies, and it cannot tell whether a passphrase is any good.

Contact

A vector this page derives differently from your library, or a browser where a count costs something unexpected, is worth the parameters and the timing: hello@pikkola.com.

Back to the studio