Skip to main content

Check whether your password has been pwnd

Project description

Check whether a password has been compromised

Query the have-i-been-pwned database for breaches that contain a given password. Returns the number of breaches found in the database:

$ pwny p@ssw0rd
51763

$ pwny aiPh1eehec8AhY2y
0

At no time the raw password is transferred to https://haveibeenpwned.com. Instead we use the generously offered API to deploy k-anonymity. I.e. we send the first five chars of the SHA1 hash of any given password. This way you can check new passwords without revealing them to the server (or any listening party).

little-pwny requires no additional packages, but it does not run on Python 2.x.

Install

with pip

Simply:

$ pip install little-pwny

From Source

Clone the source:

$ git clone https://github.com/ulif/little-pwny
$ cd little-pwny

Create and activate a virtualenv:

$ virtualenv env
$ source ./env/bin/activate.sh

Then, from this directory, install the package:

[venv] $ pip install -e .

Running Tests

We use tox and py.test for testing. So,:

$ pip install tox
$ tox

should run all tests.

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

little-pwny-0.1.tar.gz (28.0 kB view details)

Uploaded Source

Built Distribution

little_pwny-0.1-py2.py3-none-any.whl (15.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file little-pwny-0.1.tar.gz.

File metadata

  • Download URL: little-pwny-0.1.tar.gz
  • Upload date:
  • Size: 28.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for little-pwny-0.1.tar.gz
Algorithm Hash digest
SHA256 65b2a0ab1a1b5e9bd8164739f6457a12c92c5430e5c8bf5c2fcd397b40ff872c
MD5 73932ac8c9fe4d0cd1525b6461169b31
BLAKE2b-256 6e6463b0c0b01debc4cc32095e163aa7677fb2c691d82295f19ea72f2bb79b2e

See more details on using hashes here.

Provenance

File details

Details for the file little_pwny-0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: little_pwny-0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for little_pwny-0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e97ec4f4e23f5f7041b12560b28e8a1e7bdb3eb919b1393d43c146b2c30f1b7c
MD5 dda0da40c5f5242baf5fe98010e8ca08
BLAKE2b-256 e14b8b4bd076203f5e08b625dce222775a1c3c3fac77e3879bc7ca196f5e6b39

See more details on using hashes here.

Provenance

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