Transparency
Security & Methodology
How every tool works, what we do to protect you, and the limitations you should know about. If something here is unclear or wrong, please tell us.
Last updated
Our principles
- Local first. Password generation and strength analysis run entirely in your browser, using code bundled into this website.
- Nothing to leak. We have no accounts, no database and no server-side code. We never collect, store, log or transmit passwords.
- No third parties where passwords are handled. Tool pages load no analytics, advertising or external scripts, enforced by the browser through a strict Content Security Policy.
- Explicit consent for network use. The breach checker is the only feature that contacts another service, only when you press its button, and it never sends your password.
- Honest claims. We explain estimates as estimates and document what we can’t protect against.
Randomness
All security-sensitive random choices use the browser’s cryptographically secure pseudorandom number generator,crypto.getRandomValues() from the Web Crypto API. Math.random() is never used, and an automated test fails the build if it appears anywhere in the source code.
To turn random 32-bit values into a choice among n options without bias, we use rejection sampling: values at or above the largest multiple of n below 232 are discarded, and the remainder is taken modulo n. This avoids the subtle “modulo bias” that makes some characters more likely than others. A statistical (chi-square) test in our test suite checks the output distribution.
Password generators
Random password generator
Each character is chosen independently and uniformly from the selected character sets: uppercase A–Z, lowercase a–z, digits 0–9, and these 27 symbols: !@#$%^&*()-_=+[]{};:,.<>/?~. Quotes, backslash, backtick and space are left out because some systems handle them poorly. “Exclude look-alikes” removes Il1|O0o. Length ranges from 8 to 128 characters, with a default of 20.
When “at least one of each type” is selected, we generate complete passwords and discard any that don’t meet the requirement. This keeps every valid password equally likely. The common shortcut of inserting one character from each set and shuffling biases the result.
Entropy is calculated exactly: L × log₂(N) bits for length L and pool sizeN, or, when every type is required, log₂ of the exact number of qualifying passwords (computed by inclusion–exclusion with arbitrary-precision integers).
Passphrase generator
Words are chosen uniformly at random from the EFF Large Wordlist(7,776 words, ≈ 12.925 bits per word), bundled unmodified with the site and verified by a pinned checksum in our tests. Entropy is words × log₂(7,776), plus log₂ of the possibilities for each optional random extra: which word is uppercased (log₂ w), a random two-digit number in a random position (log₂ 100 + log₂ w), and a random symbol from 12 in a random position (log₂ 12 + log₂ w). The separator and Title Case are fixed choices and add nothing.
Passphrase words from the EFF Large Wordlist by the Electronic Frontier Foundation, licensed under CC BY 3.0 US.
Memorable password generator
Each suggestion combines four random EFF words (three if you provide inspiration), a random two-digit number and a random symbol attached to random words, random per-word capitalization, and either a random separator (one of 8) or CamelCase. Our displayed entropy counts the words, number, symbol, their positions and per-word capitalization. It deliberately does not count the style choice, so the figure is conservative.
Your optional inspiration word is reduced to letters and numbers, limited to 24 characters, and counted aszero bits of entropy. It is also passed to the strength estimator as known information, so ratings assume an attacker might know it. Every suggestion is analyzed by the pattern-aware estimator, and candidates rated below “Strong” are discarded and regenerated. This filtering removes a tiny, weak fraction of outputs, so the true entropy is marginally below the displayed figure.
Strength estimation
Strength is estimated with zxcvbn-ts (MIT license), a maintained TypeScript implementation of Dropbox’s zxcvbn, described in the peer-reviewed USENIX Security 2016 paper “zxcvbn: Low-Budget Password Strength Estimation.” We bundle its English and common dictionaries locally (common passwords, English words, first names, surnames, Wikipedia terms, and diceware words) and its keyboard layouts. Its optional network-based breach matcher is not used.
zxcvbn finds the most likely way an attacker would arrive at your password: matching dictionary words (including reversed and look-alike-substituted variants), keyboard patterns, repeats, sequences, dates and years. It estimates the number of guesses needed. LavenderCipher then:
- Maps the guess estimate to a rating: Very Weak (< 106), Weak (< 1010), Moderate (< 1014), Strong (< 1018) and Very Strong (≥ 1018). These are stricter than zxcvbn’s built-in score, whose top band begins at 1010 guesses, which a GPU could exhaust in a fraction of a second against a fast hash.
- Caps passwords shorter than 8 characters at “Weak.”
- Adds checks for numbers-only passwords, the predictable “word + digits + symbol” structure, and leading or trailing spaces.
- Turns each match into a plain-language explanation and recommendation. Ordinary words inside an already-strong passphrase aren’t reported as weaknesses.
Crack-time scenarios
Each crack time is the estimated number of guesses divided by an attack rate:
| Scenario | Rate | Represents |
|---|---|---|
| Online, rate-limited | 100 guesses per hour | Guessing through a login page that limits or slows down repeated attempts. |
| Online, no rate limit | 10 guesses per second | Guessing through a login page or service that never blocks repeated attempts. |
| Offline, slow hash | 10 thousand guesses per second | An attacker has stolen a password database protected with a slow, salted hash such as bcrypt, scrypt or Argon2. |
| Offline, fast hash | 100 billion guesses per second | An attacker has stolen a database protected with a fast hash such as MD5, SHA-1 or NTLM and uses GPU cracking hardware. |
These are illustrations, not guarantees. Real-world speeds vary with hardware, the hashing algorithm and its settings, and attacker strategy. The estimates assume the attacker must guess. A password that has been leaked, phished or captured by malware can be used immediately. The fast-hash rate approximates a single current high-end GPU attacking an unsalted fast hash; large cracking rigs can be considerably faster.
Breach checking
The Password Breach Checker uses the Have I Been Pwned (HIBP) Pwned Passwords range API and its k-anonymity model:
- Your browser computes the SHA-1 hash of the password with
crypto.subtle.digest. - Only the first 5 hexadecimal characters of the 40-character hash are sent, in a
GETrequest tohttps://api.pwnedpasswords.com/range/XXXXX. - The request includes
Add-Padding: true, so HIBP pads the response with random entries (count 0) that hide its true size. The request carries no cookies and no referrer, isn’t cached, and times out after 10 seconds. - HIBP returns all matching hash suffixes and their occurrence counts. Your browser compares them with the remaining 35 characters of your hash locally. Padding entries are ignored.
The check runs only when you press the button (or Enter), never while typing. The plaintext password and full hash never leave your device. HIBP and its CDN can see the 5-character prefix, your IP address and standard browser headers. A result of “not found” does not mean a password is safe: many breaches are never made public.
Security controls
Content Security Policy
Every page is served with a restrictive Content Security Policy (as an HTTP header and a matching meta tag). On tool pages:
default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self' data:; font-src 'self'; connect-src 'none'; manifest-src 'self'; base-uri 'none'; form-action 'none'; object-src 'none'; frame-src 'none'; worker-src 'none'; frame-ancestors 'none'; upgrade-insecure-requests; require-trusted-types-for 'script'; trusted-types 'none'That means no inline scripts, no external scripts, no external styles or fonts, and connect-src 'none': the browser itself refuses any network request the page might try to make. Trusted Types are required, which blocks the DOM APIs most often abused for cross-site scripting. Our code never uses innerHTML, and a test enforces this. The breach checker differs in exactly one directive:
connect-src https://api.pwnedpasswords.comHTTP security headers
Strict-Transport-Security(HTTPS only, two years, preload-ready)X-Content-Type-Options: nosniff,X-Frame-Options: DENYandframe-ancestors 'none'(no framing, preventing clickjacking)Referrer-Policy: no-referrerCross-Origin-Opener-PolicyandCross-Origin-Resource-Policy: same-originPermissions-Policydisabling camera, microphone, location, payments, USB, sensors and other features we don’t use (clipboard writing is allowed only for copy buttons)Cache-Control: no-storeon pages that handle passwords
Handling of password values
- Password fields aren’t inside forms, so nothing can be submitted. They have spell-check, autocorrect and autocapitalize turned off, because some browsers’ enhanced spell-check sends text to a cloud service. They also ask password managers not to save them.
- Values are never written to cookies,
localStorage,sessionStorage, IndexedDB, the URL or browser history. Tests scan the source code for these APIs and verify in a real browser that nothing is stored. - Fields and generated passwords are cleared when you navigate away or the page is hidden in the back/forward cache.
- Tool code never writes to the console, so values can’t end up in logs or error reports.
- All dependencies, fonts and wordlists are bundled and served from our own domain. Nothing is loaded from a CDN.
Automated tests
Our test suite (unit tests plus browser tests with Playwright) verifies, among other things, that typed and generated passwords never appear in any network request, header or body; that tool pages make no network requests at all; that the breach checker sends only a 5-character prefix and only on request; that nothing is written to storage, cookies or the URL; that generators are unbiased and respect every option; that security headers and the CSP are present; and that pages pass automated accessibility checks.
Advertising and analytics
LavenderCipher currently runs no advertising and no analytics. If we add them in the future, they will be limited to educational pages. They will never load on pages where you type or generate passwords, and the Content Security Policy on those pages would block them even if loaded by mistake. Any change will be reflected in our Privacy Policy.
Known limitations
- Your device must be trustworthy. Malware, malicious browser extensions or someone watching your screen can see what you type on any website. No website can prevent this.
- Memory can’t be securely wiped from JavaScript. We clear fields and drop references, but browsers may keep copies of strings in memory until they’re overwritten.
- The clipboard is shared. Copied passwords stay on your clipboard (and in any clipboard history or sync feature) until replaced. We don’t clear it automatically because that could erase something else you copied.
- Strength estimates are models. They can’t know about targeted information (for example, that a word is your pet’s name), or recognize every phrase, quote or language.
- Breach data is incomplete. “Not found” isn’t proof of safety.
- English-centric dictionaries. Words from other languages may be underestimated as random characters.
- You trust the code we serve. As with any website, you rely on us and our host to deliver unmodified code. Our source and methodology are documented so the claims here can be checked.
Open-source components
- zxcvbn-ts: strength estimation (MIT)
- EFF Large Wordlist: passphrase words (CC BY 3.0 US)
- Astro: static site framework (MIT)
- Fonts: Inter, Fraunces and JetBrains Mono, self-hosted (SIL Open Font License)
- Breach data: Have I Been Pwned Pwned Passwords
Reporting a security issue
If you believe you’ve found a security or privacy problem, please email our contact addresswith “Security” in the subject line. Our security.txt has details.Please never send us a real password.