Skip to main content

Check for leaked passwords in HaveIBeenPwned.

Project description

pwndck

Check the the HaveIBeenPwned password database to see if a particular password has been compromised.

It uses the haveibeenpwned API for the check:

  • This use does not require an API key. Anyone can run it.
  • This is more secure than the web page tool. your password is not exposed beyond your local machine.
  • It returns the number of times the password occurs in the database.

Install

Install from PyPi

For Debian forky or newer, use

sudo apt install pwndck

For other Debian derivatives, download the deb file and install with:

sudo dpkg -i pwndck_*_all.deb

Usage

$ pwndck -h
usage: pwndck [-h] [-q] [[-i [INPUT]] | [passwords ...] | [--version]]

Report # of password hits in HaveIBeenPwned

positional arguments:
  passwords            The password(s) to check

options:
  -h, --help           show this help message and exit
  -q, --quiet          Suppress output
  -i, --input [INPUT]  File containing passwords, one per line
                       ('-' for stdin)
  -e, --estimatedb     Estimate the current size of the HaveIBeenPwned
                       password database
  --version            show program's version number and exit

Evaluate one or more passwords against the HaveIBeenPwned
password database, and return the number of accounts for which
they have been reported as compromised.
 
The number of entries found in the database is returned. if
multiple passwords are being checked, the password name is also
returned.
 
If the password is not specified on the command line, the user
will be prompted.
 
The command returns with an error code if the password is found
in the database.
 
See https://haveibeenpwned.com/API/v3#PwnedPasswords

Module

$ python3
Python 3.13.11 (main, Dec  8 2025, 11:43:54) [GCC 15.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pwndck
>>> pwndck.process_pw("password")
52256179
>>>

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

pwndck-0.6.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pwndck-0.6-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file pwndck-0.6.tar.gz.

File metadata

  • Download URL: pwndck-0.6.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for pwndck-0.6.tar.gz
Algorithm Hash digest
SHA256 717ce22887896b40436da30ddb54001cccdc05ea39780a6c0d7843605b92294b
MD5 28d08192a64e2a1fbec6e19cad57dd14
BLAKE2b-256 aab0405e14f4216c9bae158e797a6a00b8c48536c5b62015c4b49dc1f0ea1a61

See more details on using hashes here.

File details

Details for the file pwndck-0.6-py3-none-any.whl.

File metadata

  • Download URL: pwndck-0.6-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for pwndck-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 aadc077c5e7dc9c808246addfe1d06bdfe5bfd28670d6c5e13e8aa9261da5331
MD5 c0eb38c9e3fc62da8b2c07111b969def
BLAKE2b-256 00a78963f0c9fdee6eecf5997898d7c31c38a1f8701a74848f11d465e9a34797

See more details on using hashes here.

Supported by

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