cryptography breaking changes
cryptography 51.0.0 (December 3, 2026) is its newest release with breaking changes, 13 of them. The first: cryptography 51.0.0 drops support for PyPy 3.11. Every breaking API change we have recorded in cryptography on Homebrew: 13 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 51.0.0, released December 3, 2026. Apache-2.0 OR BSD-3-Clause license. Source repository
cryptography 51.0.0 breaking changes
- Removed
PyPy 3.11 no longer gets prebuilt wheels; users on it must install from source. PyPy 3.12 wheels are now published. github.com - Behavior changed
cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateNumbers.private_key
EllipticCurvePrivateNumbers.private_key now raises ValueError when private_value is not smaller than the curve's order. github.com - Behavior changed
cryptography.hazmat.primitives.serialization.load_pem_private_key
load_pem_private_key now raises ValueError for an encrypted traditional PEM whose DEK-Info IV length does not match the cipher. github.com - Behavior changed
cryptography.x509.CertificatePolicies
Constructing CertificatePolicies with an empty policies list now raises ValueError. github.com - Behavior changed
cryptography.x509.ExtendedKeyUsage
Constructing ExtendedKeyUsage with an empty list now raises ValueError. github.com - Behavior changed
cryptography.x509.IssuerAlternativeName
Constructing IssuerAlternativeName with an empty list now raises ValueError. github.com - Behavior changed
cryptography.x509.Name
Parsing and serializing X.509 names now fails when an IA5String attribute contains non-ASCII characters. github.com - Behavior changed
cryptography.x509.SubjectAlternativeName
Parsing a subjectAltName or issuerAltName extension with an empty GeneralNames sequence is now rejected. github.com - Behavior changed
cryptography.x509.verification.PolicyBuilder.build_server_verifier
Passing a DNSName that is an IP address now raises ValueError; IP addresses must be passed as an IPAddress. github.com - Behavior changed
decrypt_into
The AEAD decrypt_into methods and update_into on the decryption classes now zero the output buffer when authentication fails. github.com - Behavior changed
encrypt_into
Methods such as encrypt_into, update_into and derive_into now raise ValueError when input and output buffers overlap. github.com - Configuration changed
The minimum supported Rust version rises from 1.83.0 to 1.85.0, so source builds with older Rust will fail. github.com - Configuration changed
On Python 3.15 the package needs CFFI 2.1.1 or newer; older CFFI versions are no longer accepted. github.com
Related packages
- cryptography on PyPI
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.