Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/damiencorpataux/ispwpwnd
Check if your password is pwned
https://github.com/damiencorpataux/ispwpwnd
Last synced: 20 days ago
JSON representation
Check if your password is pwned
- Host: GitHub
- URL: https://github.com/damiencorpataux/ispwpwnd
- Owner: damiencorpataux
- Created: 2020-06-07T16:54:51.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-10T18:21:27.000Z (over 4 years ago)
- Last Synced: 2024-11-05T16:36:48.523Z (2 months ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Check if your password is pwned against *pwnedpasswords.com* database. With minimal code, easy to check.
```
$ python3 ispwpwnd.pyType a clear text password followed by key , the first 5 hex digits of its sha1 hash will be sent to https://api.pwnedpasswords.com/range/ for lookup (ctrl-c to exit):
password1
password1: found with 2413945 occurences (sha1-hash: E38AD214943DAAD1D64C102FAEC29DE4AFE9DA3D, sent E38AD to https://api.pwnedpasswords.com/range/E38AD)
^D
```Check a list of passwords (newline separated):
```
$ echo password1 > passwords.txt
$ echo password123 >> passwords.txt
$ cat passwords.txt | python3 ispwpwnd.pypassword1: found with 2413945 occurences (sha1-hash: E38AD214943DAAD1D64C102FAEC29DE4AFE9DA3D, sent E38AD to https://api.pwnedpasswords.com/range/E38AD)
password123: found with 121251 occurences (sha1-hash: CBFDAC6008F9CAB4083784CBD1874F76618D2A97, sent CBFDA to https://api.pwnedpasswords.com/range/CBFDA)
```Run
-
```
git clone [email protected]:damiencorpataux/ispwpwnd.git
cd ispwpwnd
pip3 install requests
python3 ispwpwnd.py
```Docker
-
```
git clone [email protected]:damiencorpataux/ispwpwnd.git
cd ispwpwnd
docker build -t ispwpwnd .
docker run -it --rm ispwpwnd
```Taken from https://github.com/mikepound/pwned-search