Niko Heikkilä
↩ Back to posts

Open-Source Projects

On this page I’m listing my open-source projects I’ve coded on my spare time. Contributions and issues are welcome for every project. Check the respective repositories for more information and contribution guidelines. 🙏🏽

Pwned API

A Python library to leverage Troy Hunt’s Have I Been Pwned API v2 and the k-Anonymity model. Inspired by Phil Nash’s Ruby gem pwned. Supported on Python versions 3.5 and up.


You can install the package to your virtual environment like so:

➜ pipenv install pwnedapi


Checking a single password and fetching its pwned count:

Checking Single Password

Scanning a file for pwned passwords and exporting it as a JSON file:

Scanning a File

See the README for more.