Skip to content
This repository has been archived by the owner on Jun 5, 2018. It is now read-only.
/ checkpass-sh Public archive

Simple shell script for checking passwords against the HIBP database.

License

Notifications You must be signed in to change notification settings

rostwald/checkpass-sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

MOVED TO GITLAB:

https://gitlab.com/rostwald/checkpass-sh

checkpass-sh

Check a password against the HIBP database. Uses the range feature for k-Anonymity of the V2 API, so it only sends the first 5 characters of the SHA-1 hash over the wire.

It is very simple, has no dependencies other than the basic tools curl, grep and cut. There is no input validation or error handling (apart from what these 3 tools provide themselves). Due to its simple nature it can be easily used as a filter with other tools.

The return value is the counter representing how often the given password appeared in breaches as returned by the HIBP API.

Usage

./checkpass.sh <password>
echo "password" | ./checkpass.sh

Resources

About

Simple shell script for checking passwords against the HIBP database.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages