aes-pkcs5
Implementation of AES with CBC/ECB mode and padding scheme PKCS5
What it is and what it does
AESPKCS5 is a Python wrapper around the cryptography library that simplifies AES encryption with CBC and ECB block cipher modes and PKCS5 padding. It abstracts away some of the lower-level setup required by cryptography, making it easier to perform symmetric encryption without deep cryptographic expertise.
The package is actively maintained, supports Python 3.9 through 3.13, and carries no known vulnerabilities. It depends only on cryptography, keeping the dependency tree minimal. The BSD-2-Clause license permits use in both open-source and commercial projects.
Use it for:
- Encrypt sensitive configuration data or credentials in applications that need straightforward AES encryption without cryptography boilerplate.
- Implement symmetric encryption for data at rest in web services or APIs that require PKCS5-compatible padding.
- Decrypt legacy systems or third-party data that uses AES-CBC or AES-ECB with PKCS5 padding.
- Prototype or build proof-of-concept encryption features quickly without managing low-level cipher initialization.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides AES encryption and decryption with CBC/ECB modes and PKCS5 padding, wrapping the cryptography library for straightforward symmetric encryption operations.
Yes, if you need AES encryption with PKCS5 padding and prefer a simpler API than cryptography alone. The package is stable, actively maintained, carries no security vulnerabilities, and has low install friction. It is not worth installing if you already use cryptography directly or need more advanced cryptographic features beyond basic AES modes.
Install
aes-pkcs5 on PyPI
pip
pip install aes-pkcs5uv
uv add aes-pkcs5poetry
poetry add aes-pkcs5Installing aes-pkcs5
Before you install
Low install friction with a single dependency on cryptography. Actively maintained with last commit 2026-08-14 and latest release 2025-04-26 indicate ongoing support.
License in practice
BSD-2-Clause is permissive; you can use this package in commercial and proprietary projects with minimal restriction beyond retaining the license notice.
Quickstart
pip install aes-pkcs5
from aes_pkcs5 import AESPKCS5
cipher = AESPKCS5(key=your_key)
encrypted = cipher.encrypt(plaintext)
decrypted = cipher.decrypt(encrypted)
Requires Python 3.9 or later; cryptography library must be installed as a runtime dependency.
Verify before relying
- Whether the package handles key derivation or expects raw keys only
- Performance characteristics compared to direct cryptography library use
- Whether PKCS5 implementation is compatible with other standard implementations
- Specific API signatures and parameter requirements for encrypt/decrypt methods
Package facts
| License | BSD-2-Clause (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — cryptography |
| Maintenance | actively maintained — 475 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 197,444/month — #9,759 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: aes_pkcs5-1.0.4-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
py3rijndaelpy3rijndael provides a pure-Python…
permissive · top 15,000 on PyPI
pyaesPure-Python implementation of AES encryption…
permissive · top 5,000 on PyPI
pyhpkePyHPKE implements HPKE (Hybrid Public Key…
permissive · top 15,000 on PyPI
xxteaxxtea is a Python extension that implements the…
permissive · top 15,000 on PyPI
cryptoProvides command-line tools to encrypt and…
permissive · top 5,000 on PyPI
cryptgcryptg provides a native Python extension that…
permissive · top 15,000 on PyPI
pyAesCryptEncrypts and decrypts files and binary streams…
permissive · top 15,000 on PyPI
pyDesPure Python implementation of DES and Triple…
permissive · top 15,000 on PyPI
ff3Implements NIST FF3 and FF3-1 format-preserving…
permissive · top 15,000 on PyPI
miscreantProvides misuse-resistant authenticated…
permissive · top 5,000 on PyPI