How k-anonymity protects your password
A SHA-1 hash is a 40 character fingerprint of the password. We send only its first 5 characters. Many different passwords share those 5 characters, and the service answers with all of them: usually several hundred hash endings.
Your browser then compares the full hash with that list. The service never learns your password or even its full hash, so it cannot tell which password you checked.
We also ask for padding: the answer includes fake entries, so the size of the answer does not give away the prefix either.
What a result means
Found: the exact password is in breach data. Change it on every account where you use it and do not use it again, even if the count is low.
Not found: the password is not in the known data. That does not make it strong. Check its strength too, and keep using a different password for every account.
About Have I Been Pwned
Have I Been Pwned is a free service run by security researcher Troy Hunt. Its Pwned Passwords API is free to use and needs no account. We have no business link with it.
To check whether your email address was in a breach, use haveibeenpwned.com directly.