passwordsecure

Password checker

See how long it would take to guess and whether it already circulates in public breaches. The password never leaves your browser.

It is analyzed in your browser. To search breaches, only the first 5 characters of its SHA-1 fingerprint are sent.

What the checker looks at

It does two separate things, because a password can fail in two ways:

  • It can be weak. Short, made of words, or following a pattern software recognizes. The analyzer measures this by estimating how many guesses it would take.
  • It can be leaked. Even if it is long and unusual, once it has appeared in a breach it does not matter: it is on the lists that get tried first. The Have I Been Pwned lookup checks this.

If it has leaked, the meter drops to “very weak” whatever the bits say.

How the lookup works without sending the password

It uses a technique called k-anonymity, introduced by Troy Hunt and Cloudflare in 2018:

  1. Your browser computes the SHA-1 fingerprint of the password. For password it is 5BAA61E4C9B93F3F0682250B6CF8331B7EE68FD8.
  2. It sends only the first 5 characters: 5BAA6.
  3. Have I Been Pwned returns every leaked fingerprint starting with those 5 characters, several hundred, with how many times each appears. We also ask it to add padding entries, so not even the size of the response gives anything away.
  4. Your browser looks for the rest of the fingerprint in that list. The server never learns which one was yours.

How to read the estimated time

We assume an offline attack at 10 billion guesses per second: someone has stolen a service’s database and is testing passwords with graphics cards against a fast hash. It is the usual worst case. If the service protects passwords properly (bcrypt, Argon2), the attack is thousands of times slower; if the attacker has to try them on the login page, millions of times slower.

The guide how long it takes to crack a password has the full table for each scenario.

Frequently asked questions

Is it safe to type my password here?

The password is analyzed in your browser and never sent. For the breach search we compute its SHA-1 fingerprint and send only the first 5 characters of that fingerprint to Have I Been Pwned, which returns every leaked fingerprint starting the same way (hundreds of them). The final comparison happens on your device. Neither we nor they can tell what you typed.

Even so, the best habit is not to type your real passwords into any website. If you check one you use and the result is bad, change it anyway.

What does it mean if my password appears in breaches?

That someone, at some point, used exactly that password on a service that was breached, and it is now on the lists attackers try first. It does not mean you personally were hacked, but it does mean the password no longer protects anything. Change it everywhere you use it. The guide what to do if your password was leaked has the steps.

How is strength calculated?

We use zxcvbn, the analyzer created by Dropbox, with our own English and Spanish dictionary. It looks for words, names, dates, keyboard walks (qwerty, asdf), repeats and substitutions like p4ssw0rd, and works out how many guesses it would take to find it. If it finds no pattern, it treats the password as random and measures it by its length and character variety.

Why does the checker give fewer bits than the generator for the same password?

Because they do not have the same information. The generator knows which characters it drew from, so its figure is exact. The checker only sees the result: if your 16-character password happened to contain no digits, it cannot know digits were allowed and counts a few characters fewer. When in doubt, it would rather come in low than give you a false sense of security.

My password is not in any breach. Is it good?

Not necessarily. Black.Cat.1987 may not be on any list and still fall quickly, because it is built from predictable pieces. Look at the bits and the time: below 70 bits, replace it with a randomly generated one.

Share this page