Hacker News new | ask | show | jobs
by kbenson 3040 days ago
Well...

    CHECKPW="p@ssword" SHA1=`echo -n "$CHECKPW" | sha1sum`; curl -s https://api.pwnedpasswords.com/range/${SHA1:0:5} | grep -i ${SHA1:5:34}
1 comments

Note that this command doesn't work if your password contains an exclamation mark.