Skip to content

Upgrading argon2-cffi 21 to 23

Breaking21.3.0 → 23.1.0Platform2Deprecated2New2

BreakingUpgrade verdict

2 platform requirement changes.

  • 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.
4 items need code or config changes

Python requirement changed in 23.1.0: >=3.6 → >=3.7.

Platform2
Drops support for Python 3.6.
Adds official support for Python 3.11 and 3.12 with no code changes required.
Deprecated2
Deprecates the InvalidHash exception in favor of InvalidHashError.
InvalidHashInvalidHashError
Hard-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()