Pwned Passwords Checker

What is it?

Pwned Passwords Checker is a C# helper library for calling v2 of Troy Hunt's Pwned Passwords API.

Using this library, you can easily determine if your password has previously appeared in a data breach.

The library calls the API's range endpoint which uses k-Anonymity to ensure your whole password is not submitted. It's clever stuff and worth reading Troy's blog entry explaining it all.

Where do I get it?

If you just want to be able to use it, grab it from NuGet. The easiest way to install it is using the Package Manager Console:

PM> Install-Package PwnedPasswordsChecker

Alternatively (and if you want to see the source), grab it from GitHub - or fork me!

How do I use it?

Once you've grabbed the code, it's very simple. Want to see how many times your password has been exposed?

var pwnedPasswords = new PwnedPasswords();
var count = await pwnedPasswords.PwnedCountAsync(passwordToCheck);
An error has occurred. This application may no longer respond until reloaded. Reload 🗙