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.
- Host: GitHub
- URL: https://github.com/kmcrawford/password-checker
- Owner: kmcrawford
- Created: 2021-01-23T15:43:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-23T16:03:56.000Z (over 5 years ago)
- Last Synced: 2023-02-27T23:41:33.635Z (over 3 years ago)
- Topics: breaches, havdibeenpwned, password, security
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`