METADATA 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. Metadata-Version: 2.4
  2. Name: argon2-cffi
  3. Version: 25.1.0
  4. Summary: Argon2 for Python
  5. Project-URL: Documentation, https://argon2-cffi.readthedocs.io/
  6. Project-URL: Changelog, https://github.com/hynek/argon2-cffi/blob/main/CHANGELOG.md
  7. Project-URL: GitHub, https://github.com/hynek/argon2-cffi
  8. Project-URL: Funding, https://github.com/sponsors/hynek
  9. Project-URL: Tidelift, https://tidelift.com/?utm_source=lifter&utm_medium=referral&utm_campaign=hynek
  10. Author-email: Hynek Schlawack <hs@ox.cx>
  11. License-Expression: MIT
  12. License-File: LICENSE
  13. Keywords: hash,hashing,password,security
  14. Classifier: Development Status :: 5 - Production/Stable
  15. Classifier: Operating System :: MacOS :: MacOS X
  16. Classifier: Operating System :: Microsoft :: Windows
  17. Classifier: Operating System :: POSIX
  18. Classifier: Programming Language :: Python :: 3.8
  19. Classifier: Programming Language :: Python :: 3.9
  20. Classifier: Programming Language :: Python :: 3.10
  21. Classifier: Programming Language :: Python :: 3.11
  22. Classifier: Programming Language :: Python :: 3.12
  23. Classifier: Programming Language :: Python :: 3.13
  24. Classifier: Programming Language :: Python :: 3.14
  25. Classifier: Programming Language :: Python :: Implementation :: CPython
  26. Classifier: Programming Language :: Python :: Implementation :: PyPy
  27. Classifier: Topic :: Security :: Cryptography
  28. Classifier: Typing :: Typed
  29. Requires-Python: >=3.8
  30. Requires-Dist: argon2-cffi-bindings
  31. Description-Content-Type: text/markdown
  32. # *argon2-cffi*: Argon2 for Python
  33. [Argon2](https://github.com/p-h-c/phc-winner-argon2) won the [Password Hashing Competition](https://www.password-hashing.net/) and *argon2-cffi* is the simplest way to use it in Python:
  34. ```pycon
  35. >>> from argon2 import PasswordHasher
  36. >>> ph = PasswordHasher()
  37. >>> hash = ph.hash("correct horse battery staple")
  38. >>> hash # doctest: +SKIP
  39. '$argon2id$v=19$m=65536,t=3,p=4$MIIRqgvgQbgj220jfp0MPA$YfwJSVjtjSU0zzV/P3S9nnQ/USre2wvJMjfCIjrTQbg'
  40. >>> ph.verify(hash, "correct horse battery staple")
  41. True
  42. >>> ph.check_needs_rehash(hash)
  43. False
  44. >>> ph.verify(hash, "Tr0ub4dor&3")
  45. Traceback (most recent call last):
  46. ...
  47. argon2.exceptions.VerifyMismatchError: The password does not match the supplied hash
  48. ```
  49. <!-- end short -->
  50. ## Project Links
  51. - [**PyPI**](https://pypi.org/project/argon2-cffi/)
  52. - [**GitHub**](https://github.com/hynek/argon2-cffi)
  53. - [**Documentation**](https://argon2-cffi.readthedocs.io/)
  54. - [**Changelog**](https://github.com/hynek/argon2-cffi/blob/main/CHANGELOG.md)
  55. - [**Funding**](https://hynek.me/say-thanks/)
  56. - The low-level Argon2 CFFI bindings are maintained in the separate [*argon2-cffi-bindings*](https://github.com/hynek/argon2-cffi-bindings) project.
  57. ## Release Information
  58. ### Added
  59. - Official support for Python 3.13 and 3.14.
  60. No code changes were necessary.
  61. ### Removed
  62. - Python 3.7 is not supported anymore.
  63. [#186](https://github.com/hynek/argon2-cffi/pull/186)
  64. ### Changed
  65. - `argon2.PasswordHasher.check_needs_rehash()` now also accepts bytes like the rest of the API.
  66. [#174](https://github.com/hynek/argon2-cffi/pull/174)
  67. - Improved parameter compatibility handling for Pyodide / WebAssembly environments.
  68. [#190](https://github.com/hynek/argon2-cffi/pull/190)
  69. ---
  70. [Full Changelog →](https://github.com/hynek/argon2-cffi/blob/main/CHANGELOG.md)
  71. ## Credits
  72. *argon2-cffi* is maintained by [Hynek Schlawack](https://hynek.me/).
  73. The development is kindly supported by my employer [Variomedia AG](https://www.variomedia.de/), *argon2-cffi* [Tidelift subscribers](https://tidelift.com/?utm_source=lifter&utm_medium=referral&utm_campaign=hynek), and my amazing [GitHub Sponsors](https://github.com/sponsors/hynek).
  74. ## *argon2-cffi* for Enterprise
  75. Available as part of the [Tidelift Subscription](https://tidelift.com/?utm_source=lifter&utm_medium=referral&utm_campaign=hynek).
  76. 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.
  77. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use.