Skip to content

Command-line utility to check if a password is compromised

License

Notifications You must be signed in to change notification settings

mrobakowski/chkpwned

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChkPwned

A little command line utility to check if your password was compromised. You must provide the text file with sorted password hashes. The (archived) file can be downloaded from https://downloads.pwnedpasswords.com/passwords/pwned-passwords-ordered-2.0.txt.7z

Building & Running

This application compiles on Rust stable (checked on version 1.24.1).

$ cargo build --release # produces chkpwned[.exe] in target/release
$ ./target/release/chkpwned path/to/haveIBeenPwned/database/file.txt
enter password to check> ******
Searching...
██████████████████████████████████████████████████████████████████ 29/29
The password you entered was found 11063 times in various leaks

$ ./target/release/chkpwned path/to/haveIBeenPwned/database/file.txt
enter password to check> **********************
Searching...
██████████████████████████████████████████████████████████████████ 29/29
The password you entered wasn't found! Lucky you!

$ # The 29/29 number can seem a bit weird, but the database contains 501m entries and we're using binary search
$ # which runs in O(log N). log2(501m) is approx. 29

About

Command-line utility to check if a password is compromised

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages