
Security News
npm Introduces minimumReleaseAge and Bulk OIDC Configuration
npm rolls out a package release cooldown and scalable trusted publishing updates as ecosystem adoption of install safeguards grows.
haveibeenpwnd
Advanced tools
Troy Hunt released a new version of the Have I Been pwnd Database. This time with more anonymity
in mind.
You can use HaveIBeenPwnd als command line script or use it as module in other python code.
Install HaveIBeenPwnd gobally or in a virtual environment:
.. code-block:: bash
$ pip install haveibeenpwnd
This add shortcuts to haveibeenpwnd, so that you call haveibeenpwnd from everywhere. To check a password, simply do this:
.. code-block:: bash
$ haveibeenpwnd --password hunter2
The password was found 16092 times in the haveibeenpwned.com database.
Remember, haveibeenpwnd does not send the given password into the internet, it sends the first 5 chars of the SHA1 Hash.
To check if a mail has been part of a breach, do this:
.. code-block:: bash
$ haveibeenpwnd -m test@example.com
The email <test@example.com> was found in following breaches:
The <000webhost> breach (2015-03-01) exposed Email addresses, IP addresses, Names and Passwords
The <8tracks> breach (2017-06-27) exposed Email addresses and Passwords
...
Check emails:
.. code-block:: python
>>> from haveibeenpwnd import check_email
>>> check_email("test@example.com"))
>>> check_email("test@example.com")
{'breaches': [{'Title': '000webhost', ...}]}
and check passwords:
.. code-block:: python
>>> from haveibeenpwnd import check_password
>>> check_password('hunter2')
16092
>>> check_password('lksdflksdpsökfdsödg')
0
You can install haveibeenpwnd with pip:
.. code-block:: bash
$ pip install haveibeenpwnd
You can run tests with:
.. code-block:: bash
$ tox
FAQs
Check passwords and emails against HaveIBeenPwnd
We found that haveibeenpwnd demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
npm rolls out a package release cooldown and scalable trusted publishing updates as ecosystem adoption of install safeguards grows.

Security News
AI agents are writing more code than ever, and that's creating new supply chain risks. Feross joins the Risky Business Podcast to break down what that means for open source security.

Research
/Security News
Socket uncovered four malicious NuGet packages targeting ASP.NET apps, using a typosquatted dropper and localhost proxy to steal Identity data and backdoor apps.