Pure-Python Lai–Massey block ciphers: IDEA-LM, FOX-LM, MISTY1-LM with ECB/CBC/CTR modes.
Project description
Lai–Massey Cryptographic Library
This project implements several block ciphers based on the Lai–Massey scheme:
- IDEA-LM
- FOX-LM
- MISTY1 (full cipher)
- MISTY1-LM variant
- ECB / CBC / CTR modes
The implementation is pure Python and designed for learning, research, and security experimentation.
Features
- Modular architecture
- Realistic key schedules
- Reversible encryption/decryption
- Fully separated FI/FO/FL for MISTY1
- Test suite included
Quick Example
from laimassey.idea_lm import IDEA_LM
cipher = IDEA_LM(key=b"1234567890ABCDEF")
ct = cipher.encrypt_block(b"ABCDEFGH")
pt = cipher.decrypt_block(ct)
print(pt)
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.5.tar.gz
(8.4 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
laimassey-0.1.5-py3-none-any.whl
(10.9 kB
view details)
File details
Details for the file laimassey-0.1.5.tar.gz.
File metadata
- Download URL: laimassey-0.1.5.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2b600ff904ed095a4b6e36911afddea5654ccdd640617598845b53aa0444f9c
|
|
| MD5 |
bbca8256e0c42bfd50499acc1784af43
|
|
| BLAKE2b-256 |
3cc93627fd1d23659a7cf46da195c8577df185d24da6758d29c9c34195c91c30
|
File details
Details for the file laimassey-0.1.5-py3-none-any.whl.
File metadata
- Download URL: laimassey-0.1.5-py3-none-any.whl
- Upload date:
- Size: 10.9 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 |
0b59d49fe78d5e2d591d0b068868dc05cc7b240bdb1e4ab752d79b88591b2660
|
|
| MD5 |
a07b262ef989762c8c522d4fa6d51992
|
|
| BLAKE2b-256 |
ad7d2f40090ada929eda9c13e8730aec9f848007ce6c6eff6766cf3596399ff3
|