hibp

command module
v0.0.0-...-e884966 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2018 License: MIT Imports: 9 Imported by: 0

README

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'

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL