Skip to content

Instantly share code, notes, and snippets.

@maschwenk
Last active September 8, 2017 17:00
Show Gist options
  • Save maschwenk/9874cf58b9e77e3eaa544a78f5dab5ce to your computer and use it in GitHub Desktop.
Save maschwenk/9874cf58b9e77e3eaa544a78f5dab5ce to your computer and use it in GitHub Desktop.
Check haveibeenpwned for your passwords
  1. wget https://downloads.pwnedpasswords.com/passwords/pwned-passwords-1.0.txt.7z 5GB file, expands to ~10GB
  2. brew install unar (optional if you have a cli tool that can unarchive 7z files)
  3. unar pwned-passwords-1.0.txt.7z
  4. fgrep $(echo -n "password youre looking for" | openssl sha1 | tr '[:lower:]' '[:upper:]') pwned-passwords-1.0.txt
    • $(echo -n "password youre looking for" | openssl sha1 | tr '[:lower:]' '[:upper:]') gives you a SHA1, uppercased
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment