Skip to main content

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.2.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

laimassey-0.1.2-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file laimassey-0.1.2.tar.gz.

File metadata

  • Download URL: laimassey-0.1.2.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for laimassey-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4c9913052f3db325d89e2dca6a087e1a382c4b1f2653ad1e430535c52efd340d
MD5 8d32ffbcd57764e907c4be5568d1ffe5
BLAKE2b-256 b17e8a061de400d9fa31c9fc63d6addaa9881e157910398546486d40da2d044e

See more details on using hashes here.

File details

Details for the file laimassey-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: laimassey-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for laimassey-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bcaa74661f58df5c2e3aea16981dee9067122222a3f5528a1347f0aae97fbd3a
MD5 6c48deda69b6e0ac0fb04460c875384e
BLAKE2b-256 33ef29d3fae10bbce988f0eb5489a053ee232afd15eda8dada3a76d699e86803

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page