An open API service indexing awesome lists of open source software.

https://github.com/kmcrawford/password-checker

This is an example program that uses https://haveibeenpwned.com/Passwords api to check to see if a password has been previously compromised in a data breach.
https://github.com/kmcrawford/password-checker

breaches havdibeenpwned password security

Last synced: over 1 year ago
JSON representation

This is an example program that uses https://haveibeenpwned.com/Passwords api to check to see if a password has been previously compromised in a data breach.

Awesome Lists containing this project

README

          

Password Checker

This is an example program that uses https://haveibeenpwned.com/Passwords api to check to see if a password has been previously compromised in a data breach.

Range api used (with padding):
https://haveibeenpwned.com/API/v3#SearchingPwnedPasswordsByRange

Blog Post on api and how it is secure to use:
https://www.troyhunt.com/enhancing-pwned-passwords-privacy-with-padding/

Usage:

```
->go get github.com/kmcrawford/password-checker

->password-checker ilovepuppies
Appeared 480 times in security breaches
```

The exit code will be `0` if the password has not been included in any security breaches. If the password has been found in a previous security breach the exit code will be `1`