---
title: "argon2-cffi 25.1.0 Breaking Changes on PyPI | Since.dev"
description: "What each argon2-cffi release removed, renamed or changed: 6 breaking changes in 2 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/argon2-cffi
last_updated: 2026-12-04
---

# argon2-cffi breaking changes

argon2-cffi 25.1.0 (June 3, 2025) is its newest release with breaking changes, 3 of them. The first: argon2-cffi 25.1.0 drops support for Python 3.7. Every breaking API change we have recorded in argon2-cffi on PyPI: 6 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `25.1.0`, released June 3, 2025. [Source repository](https://github.com/hynek/argon2-cffi)

Its 25.1.0 release drops [Python 3.7](https://since.dev/calendar/python/3.7.md). [Python end of life dates](https://since.dev/calendar/python.md).

- From [23.1.0](#v-23-1-0) to [25.1.0](#v-25-1-0): 3 breaking changes in 1 version.

## argon2-cffi 25.1.0 breaking changes

argon2-cffi 25.1.0, released June 3, 2025: 3 breaking changes.

- **Removed**  

Python 3.7 is no longer supported; users on Python 3.7 must upgrade their Python version before using this release. [github.com](https://github.com/hynek/argon2-cffi/releases/tag/25.1.0)
- **Behavior changed** `argon2.PasswordHasher.check_needs_rehash`  

check_needs_rehash now accepts bytes as well as str, matching the rest of the API; code relying on it rejecting bytes may behave differently. [github.com](https://github.com/hynek/argon2-cffi/releases/tag/25.1.0)
- **Signature changed** `argon2.PasswordHasher.check_needs_rehash`  

Was def check_needs_rehash(self, hash: str) -> bool; now def check_needs_rehash(self, hash: str | bytes) -> bool. [pypi.org](https://pypi.org/project/argon2-cffi/25.1.0/)

## argon2-cffi 23.1.0 breaking changes

argon2-cffi 23.1.0, released August 15, 2023: 3 breaking changes.

- **Removed**  

Python 3.6 is no longer supported, so users on Python 3.6 must upgrade their Python version to keep using this release. [github.com](https://github.com/hynek/argon2-cffi/releases/tag/23.1.0)
- **Signature changed** `argon2.exceptions.InvalidHash`  

Was class InvalidHash(ValueError); now InvalidHash. [pypi.org](https://pypi.org/project/argon2-cffi/23.1.0/)
- **Signature changed** `argon2.PasswordHasher.hash`  

Was def hash(self, password: Union\[str, bytes\]) -> str; now def hash(self, password: str | bytes, \*, salt: bytes | None = None) -> str. [pypi.org](https://pypi.org/project/argon2-cffi/23.1.0/)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
