Skip to main content

Check passwords against https://haveibeenpwned.com/API/v2#PwnedPasswords

Project description

Build StatusPyPI versionUpdatesPython 3

safepass

Check passwords against https://haveibeenpwned.com/API/v2#PwnedPasswords

Usage

For humans

$ safepass
Password: <enter pwned password (masked)>
NOT SAFE!
$ echo $?
1
$ safepass
Password: <enter not-pwned password (masked)>
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

>>> from safepass import safepass
>>> result=safepass(PWNED_PASSWORD)
NOT SAFE!
>>> result
False
>>> result=safepass(NOT_PWNED_PASSWORD)
SAFE!
>>> result
True

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for safepass, version 1.0.8
Filename, size File type Python version Upload date Hashes
Filename, size safepass-1.0.8.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page