Master Password Generator
Deterministic PBKDF2-HMAC-SHA256 generator
default-vault-salt.
Exact Python Parity (Lengths 8–20): Mirrors generate_password.py byte-for-byte using UTF-8 encoding, 600,000 PBKDF2-HMAC-SHA256 iterations, and a 64-byte key (dk). Guaranteed characters are drawn from dk[0..3], remaining characters from dk[4..length-1] over the 70-character pool, and a deterministic reverse Fisher–Yates shuffle is driven by dk[length..63].
Extended Lengths (21–30): Seamlessly uses bytes dk[20..29] from the same 64-byte key while still reserving 34+ independent bytes (dk[30..63]) for the deterministic shuffle. Runs natively via the Web Crypto API when available, or automatically falls back to a chunked pure-JavaScript PBKDF2-HMAC-SHA256 engine in offline file:// contexts.