https://github.com/jbowens/checkpassword
Check passwords offline against haveibeenpwned.com's SHA1 password list
https://github.com/jbowens/checkpassword
haveibeenpwned password-safety passwords
Last synced: 4 months ago
JSON representation
Check passwords offline against haveibeenpwned.com's SHA1 password list
- Host: GitHub
- URL: https://github.com/jbowens/checkpassword
- Owner: jbowens
- License: mit
- Created: 2019-04-28T17:27:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-18T02:48:37.000Z (over 6 years ago)
- Last Synced: 2024-06-20T12:40:48.262Z (over 1 year ago)
- Topics: haveibeenpwned, password-safety, passwords
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# checkpassword
This command checks passwords against [haveibeenpwned.com's alphbetized, SHA1 password list](~/pwned-passwords-sha1-ordered-by-hash-v4.txt).
The latest password list as of writing is 23GB uncompressed, so a naive text search can be slow and memory-intensive.
This program mmaps the file and binary searches over it.
This approach is fast and has minor memory usage.```
go get github.com/jbowens/checkpassword
go install github.com/jbowens/checkpassword
checkpassword -file ~/pwned-passwords-sha1-ordered-by-hash-v4.txt "password"
```