argon2-cffi

Secure Password Hashes for Python

Latest version: 25.1.0 registry icon
Maintenance score
100
Safety score
100
Popularity score
27
Check your open source dependency risks. Get immediate insight about security, stability and licensing risks.
Security
  Vulnerabilities
Version Suggest Low Medium High Critical
25.1.0 0 0 0 0 0
23.1.0 0 0 0 0 0
21.3.0 0 0 0 0 0
21.2.0 0 0 0 0 0
21.1.0 0 0 0 0 0
20.1.0 0 0 0 0 0
19.2.0 0 0 0 0 0
19.1.0 0 0 0 0 0
18.3.0 0 0 0 0 0
18.2.0 0 0 0 0 0
18.1.0 0 0 0 0 0
16.3.0 0 0 0 0 0
16.2.0 0 0 0 0 0
16.1.0 0 0 0 0 0
16.0.0 0 0 0 0 0
15.0.1 0 0 0 0 0
15.0.0b5 0 0 0 0 0
15.0.0 0 0 0 0 0

Stability
Latest release:

25.1.0 - This version is safe to use because it has no known security vulnerabilities at this time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform

Licensing

Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.

MIT   -   MIT License

Not a wildcard

Not proprietary

OSI Compliant



argon2-cffi: Argon2 for Python

Documentation CII Best Practices PyPI version Downloads / Month

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

>>> from argon2 import PasswordHasher
>>> ph = PasswordHasher()
>>> hash = ph.hash("correct horse battery staple")
>>> hash  # doctest: +SKIP
'$argon2id$v=19$m=65536,t=3,p=4$MIIRqgvgQbgj220jfp0MPA$YfwJSVjtjSU0zzV/P3S9nnQ/USre2wvJMjfCIjrTQbg'
>>> ph.verify(hash, "correct horse battery staple")
True
>>> ph.check_needs_rehash(hash)
False
>>> ph.verify(hash, "Tr0ub4dor&3")
Traceback (most recent call last):
  ...
argon2.exceptions.VerifyMismatchError: The password does not match the supplied hash

Project Links

Credits

argon2-cffi is maintained by Hynek Schlawack.

The development is kindly supported by my employer Variomedia AG, argon2-cffi Tidelift subscribers, and my amazing GitHub Sponsors.

argon2-cffi for Enterprise

Available as part of the Tidelift Subscription.

The maintainers of argon2-cffi and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open-source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use.