Skip to content

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.

Notifications You must be signed in to change notification settings

kmcrawford/password-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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

About

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.

Topics

Resources

Stars

Watchers

Forks

Languages