Educational Lai-Massey block cipher library with multiple algorithms and block modes.
Project description
laimassey
An educational cryptography library implementing several Lai-Massey based block ciphers (IDEA-LM, FOX-LM, MISTY-LM) and block modes (ECB, CBC, CTR).
Install
Usage
from laimassey import IDEA_LM, CBC
key = b"12345678ABCDEFGH"
cipher = IDEA_LM(key)
mode = CBC(cipher)
ciphertext = mode.encrypt(b"Hello world!")
print(mode.decrypt(ciphertext))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
laimassey-0.1.0.tar.gz
(3.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file laimassey-0.1.0.tar.gz.
File metadata
- Download URL: laimassey-0.1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0efc0d9c4d13eadd4cfae35c430e1195f5eaf073f753d80cedbaa2b505a6c52d
|
|
| MD5 |
b3f8d0aa87f72bc4da02bad6deab7a8d
|
|
| BLAKE2b-256 |
e7a2dc7bea2f5e710bc5d4b91df63b9f79c3cad9ca8f1c36c54b0cb456fbf8b1
|
File details
Details for the file laimassey-0.1.0-py3-none-any.whl.
File metadata
- Download URL: laimassey-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dcca835948d9b24f63f1337d83a17146300af082807246d5543c2bfa6a819ecc
|
|
| MD5 |
dc10958bea3d5c59a748055ba8ee9620
|
|
| BLAKE2b-256 |
c877824bb96245f17a19f227bb536b7f9487a08856e3226e9a35b45d1e7905a6
|