https://github.com/cmccandless/safepass
Check passwords against https://haveibeenpwned.com/API/v2#PwnedPasswords
https://github.com/cmccandless/safepass
password-safety python python3 security
Last synced: 25 days ago
JSON representation
Check passwords against https://haveibeenpwned.com/API/v2#PwnedPasswords
- Host: GitHub
- URL: https://github.com/cmccandless/safepass
- Owner: cmccandless
- License: mit
- Created: 2018-07-11T14:14:43.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-20T13:37:43.000Z (about 6 years ago)
- Last Synced: 2025-03-20T01:51:21.895Z (2 months ago)
- Topics: password-safety, python, python3, security
- Language: Python
- Homepage: https://pypi.org/project/safepass/
- Size: 27.3 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/cmccandless/safepass)[](https://badge.fury.io/py/safepass)[](https://pyup.io/repos/github/cmccandless/safepass/)[](https://pyup.io/repos/github/cmccandless/safepass/)
# safepass
Check passwords against https://haveibeenpwned.com/API/v2#PwnedPasswords## Usage
### For humans
```bash
$ safepass
Password:
NOT SAFE!
$ echo $?
1
$ safepass
Password:
SAFE!
$ echo $?
0
```### For scripting
*Note: scripting mode intended for situations where command history is not saved. Please use above interactive mode if checking directly in command line.*
`$ safepass $PASSWORD`
### API
```bash
>>> from safepass import safepass
>>> result=safepass(PWNED_PASSWORD)
NOT SAFE!
>>> result
False
>>> result=safepass(NOT_PWNED_PASSWORD)
SAFE!
>>> result
True
```