Check passwords against the https://haveibeenpwned.com/Passwords API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
vendor
Gopkg.lock
Gopkg.toml
LICENSE
README.md
main.go

README.md

HIBP (Have I Been Pwned)

A command-line password checker built on top of the https://github.com/mattevans/pwned-passwords library.

Install with go get -u github.com/apiarian/hibp.

See hibp -help for usage information.

Have my pass passwords been pwned?

A bash one-liner:

find $HOME/.password-store -name '*.gpg' | \
sed "sx${HOME}/\.password-store/xx" | \
sed s/.gpg// | \
xargs -n1 -I key sh -c \
'echo "key \c";
pass show key | head -n1 | hibp --stdin > /dev/null;
export OUT=$?;
if [ "$OUT" -eq "0" ];
    then echo ok;
elif [ "$OUT" -eq "2" ];
    then echo NOT OK;
else
    echo error;
fi'