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.1.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.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: laimassey-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 757332f6e774af911232f41888a70a834308f3df004603380993ffcf87da2f0c
MD5 7a8921e185c591095081824b6360456a
BLAKE2b-256 0c7b318cbf32be002f7dec9f1ea35751869c016e1c1058e0c57cdfc6fcf02c25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: laimassey-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 42f41c916f2f38796c0d1f00f916120decb91ff1e6bc40ab1bb0a956e01c1d6e
MD5 d297448d7d2bdb6e3e6cb0938d31f550
BLAKE2b-256 ae157d995ffb51407dee6953e8e4c46bca446910736e708043d65b12100b7834

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