skillfed

aes-pkcs5

Implementation of AES with CBC/ECB mode and padding scheme PKCS5

aes-pkcs5 v1.0.4 197.4K downloads/30d#9,759 on PyPI8
Permissive license BSD-2-Clause Active released

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-pkcs5

uv

uv add aes-pkcs5

poetry

poetry add aes-pkcs5

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python Modules

Tags

AES encryption CBC ECBPKCS5 padding Pythonsymmetric encryption libraryAES cipher modescryptography wrapper
aes-encryptionsymmetric-crypto

More Python Modules packages