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.

Source Distribution

safepass-1.0.8.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file safepass-1.0.8.tar.gz.

File metadata

  • Download URL: safepass-1.0.8.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for safepass-1.0.8.tar.gz
Algorithm Hash digest
SHA256 16be2777c63942b8a226e7082271b0ab253089153812f78e6ee64e7ed4b9a9a9
MD5 5a6c297da6027068002e98fb44fd7b65
BLAKE2b-256 45276f86c2084dc6be7906dc5dddfd8ef3b3525159e586ea75c4271f4be7b878

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page