Check if your password has been pwned using awesome ';--have i been pwned? API.

Piotr Czajkowski cf4ee0b924 Only once %!s(int64=3) %!d(string=hai) anos
.github 7cc07c1423 This way? %!s(int64=3) %!d(string=hai) anos
.gitignore 28bb9ff292 Added .dSYM %!s(int64=6) %!d(string=hai) anos
LICENSE.md 6dfd4df247 Initial commit %!s(int64=6) %!d(string=hai) anos
README.md e62499fe77 No windows %!s(int64=4) %!d(string=hai) anos
curl.c 99359d59a5 Understand your data structures! %!s(int64=5) %!d(string=hai) anos
curl.h cf4ee0b924 Only once %!s(int64=3) %!d(string=hai) anos
makefile 64a32c3bc1 Another trick for mac %!s(int64=4) %!d(string=hai) anos
pwned.c 22255874af Let's untangle it a bit %!s(int64=4) %!d(string=hai) anos
sha.c 4aea747700 Good advice %!s(int64=4) %!d(string=hai) anos
sha.h cf4ee0b924 Only once %!s(int64=3) %!d(string=hai) anos

README.md

Pwned Password

Fun project to utilize awesome ';--have i been pwned? Passwords API. It generates SHA1 hash for the password you provide as an argument and then grabs the range of hashes, basing on first 5 characters of the hash, from the service and checks if your hash is among them. So your password, nor its hash, never leaves your computer.

Usage is simple:

./pwned <password>

It'll print "This is how many times your password was pwned:" and a number if your password is in ';--have i been pwned? DB, else it'll print "Password not pwned!". Enjoy!