Upgrading argon2-cffi 21 to 23
Breaking21.3.0 → 23.1.0Platform2Deprecated2New2
BreakingUpgrade verdict
2 platform requirement changes.
In plain terms
- This version no longer works on Python 3.6; you need a newer Python.
- This version officially works on Python 3.11 and 3.12.
- The old InvalidHash error name is deprecated; use InvalidHashError instead. Both names still work for now.
- Three old password functions now emit deprecation warnings and will be removed in 2024. Switch to the PasswordHasher class.
Must act 4 items need code or config changes
Python requirement changed in 23.1.0: >=3.6 → >=3.7.
What you must change
Platform2
Drops support for Python 3.6.
Adds official support for Python 3.11 and 3.12 with no code changes required.
Deprecations to plan for
Deprecated2
Deprecates the InvalidHash exception in favor of InvalidHashError.
InvalidHashInvalidHashErrorHard-deprecates argon2.hash_password(), argon2.hash_password_raw(), and argon2.verify_password(), which now raise DeprecationWarning and will be removed in 2024.
argon2.hash_password()argon2.hash_password_raw()argon2.verify_password()