Crypto & Hashing

Password Hash

Hash and verify passwords with bcrypt, scrypt, or Argon2 at tunable cost.

  • Nothing savedInput and output stay in memory and are gone when you leave this page.
  • Runs in your browserProcessing happens in this page. No application server receives your input.
More options

Password to hash

Nothing on this page is saved. Closing or reloading the tab discards it permanently.

Password hash

Nothing on this page is saved. Closing or reloading the tab discards it permanently.

What this tool does

Hashes passwords with Argon2id (default, RFC 9106), scrypt (RFC 7914), or bcrypt inside a dedicated Web Worker (hash.worker.ts) using a fresh 16-byte CSPRNG salt from randomBytes(16) on every run, and verifies passwords against existing encoded hashes. Nothing on this page is saved. Closing or reloading the tab discards it permanently.

Scheme parameter floors and provenance

  • Argon2id: OWASP Password Storage Cheat Sheet β€” 19 MiB, t=2, p=1 (salt: 16 bytes).
  • scrypt: OWASP Password Storage Cheat Sheet β€” N=2^17, r=8, p=1 (salt: 16 bytes).
  • bcrypt: OWASP Password Storage Cheat Sheet β€” cost 10 minimum, 12 recommended (salt: 16 bytes).

Why bcrypt rejects passwords over 72 bytes

Standard bcrypt silently truncates passwords after the 72nd UTF-8 byte, causing longer passphrases with identical 72-byte prefixes to collide. This tool measures UTF-8 byte length (where multi-byte characters occupy 2–4 bytes) and rejects passwords above 72 bytes with an explicit byte-count error instead of truncating.

Limits

Verifies bcrypt ($2a$, $2b$, $2y$), Argon2i / Argon2d / Argon2id ($argon2*$), and scrypt only in this tool’s own parameter form: scrypt has no universally agreed encoded string, so its output is hex plus its parameters listed beside it, and a scrypt hash from another tool cannot be verified here unless its parameters are entered by hand. No pepper. No PHC-string parsing beyond those two families.

Verifies bcrypt ($2a$, $2b$, $2y$), Argon2i / Argon2d / Argon2id ($argon2*$), and scrypt only in this tool's own parameter form: scrypt has no universally agreed encoded string, so its output is hex plus its parameters listed beside it, and a scrypt hash from another tool cannot be verified here unless its parameters are entered by hand. No pepper. No PHC-string parsing beyond those two families.

Error and status messages

  • bcrypt hashes at most 72 bytes. This password is <n> bytes; everything past the 72nd would be silently ignored.
  • That is not a recognizable bcrypt, scrypt, or Argon2 hash.
  • Argon2 needs at least 8 KiB of memory, 1 iteration, and 1 lane.
  • bcrypt cost must be between 4 and 31.
  • scrypt N must be a power of two between 2 and 2^20.
  • Hashing was cancelled. No hash was produced.

Related tools

  • PBKDF2 Key Derivation (/crypto/pbkdf2) for deterministic key derivation with editable salt and iteration counts.
  • Diceware Passphrase (/security/password) for generating high-entropy random passwords.
  • API Token Generator (/security/passphrase) for EFF large-wordlist diceware passphrases.
  • Hash Generator (/crypto/hash) for fast unkeyed digests over files and non-password data.

Scope: this covers the page itself. Your browser, operating system, clipboard, downloads, extensions, and crash recovery may keep copies, and a compromised site origin would not be protected.