Registry / security / slowaes

slowaes

JSON →
library0.1a1pypypiunverified

A pure Python implementation of the AES encryption algorithm, designed for educational purposes. Version 0.1a1, with infrequent releases.

pip install slowaes
INSTALL
IMPORT
SIG · SLOWAES
S
slowaes
securitypythonv0.1a1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AES
from slowaes.aes import AES
from slowaes import AES

Encrypt and decrypt with AES in CFB mode.

from slowaes import AES, AESModeOfOperation key = b'0123456789abcdef' # 16 bytes for AES-128 iv = b'1234567890abcdef' # 16 bytes plaintext = b'Hello World!' aes = AES(key, AESModeOfOperation.CFB, iv) ciphertext = aes.encrypt(plaintext) print(ciphertext) aes_dec = AES(key, AESModeOfOperation.CFB, iv) plaintext_dec = aes_dec.decrypt(ciphertext) print(plaintext_dec)
Debug
Known issues
deprecatedslowaes is a slow, pure Python implementation. Do not use for production.
fix
Use PyCryptodome or cryptography library with hardware acceleration.
affects: all
gotchaThe AES class requires a mode from AESModeOfOperation; defaults are not documented.
fix
Always specify mode explicitly, e.g., AES(key, AESModeOfOperation.CFB, iv).
affects: all
Upgrade
Version history
0.1a1latest on PyPI · released May 23, 2010
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
16
Resources
slowaes — pip install slowaes · libregistry