Skip to main content

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

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.

Release history Release notifications | RSS feed

This release

1.0.8 This release

1 file

1.0.6

1 file

1.0.2

1 file

1.0.1

2 files

1.0.0

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page