Awesome Open Source
Awesome Open Source

===================================== CFFI-based Argon2 Bindings for Python

.. image:: :target: :alt: Documentation Status

.. image:: :target: :alt: CI Status

.. image:: :target: :alt: Test Coverage

.. image:: :target: :alt: IRC

.. image:: :target: :alt: Code style: black

.. teaser-begin

Argon2 <>_ won the Password Hashing Competition <>_ and argon2-cffi is the simplest way to use it in Python and PyPy:

.. code-block:: pycon

from argon2 import PasswordHasher ph = PasswordHasher() hash = ph.hash("s3kr3tp4ssw0rd") hash # doctest: +SKIP '$argon2id$v=19$m=102400,t=2,p=8$tSm+JOWigOgPZx/g44K5fQ$WDyus6py50bVFIPkjA28lQ' ph.verify(hash, "s3kr3tp4ssw0rd") True ph.check_needs_rehash(hash) False ph.verify(hash, "t0t411ywr0ng") Traceback (most recent call last): ... argon2.exceptions.VerifyMismatchError: The password does not match the supplied hash

argon2-cffi\ ’s documentation lives at Read the Docs <>, the code on GitHub <>. It’s rigorously tested on Python 2.7, 3.5+, and PyPy.

It implements Argon2 version 1.3, as described in Argon2: the memory-hard function for password hashing and other applications <>_.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
python (53,699
security (1,880
password (152
argon2 (21