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.4.tar.gz (7.5 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.4-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: laimassey-0.1.4.tar.gz
  • Upload date:
  • Size: 7.5 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.4.tar.gz
Algorithm Hash digest
SHA256 45164a54986be27355d1c21360783eced39d3ec357e7cd5fc3106238e1c6da41
MD5 4ac42fb2a51953750f2b1b54fa7758ad
BLAKE2b-256 2abafdd70803f8c366d3a2f3300ffb52943c93880a86f1783ee0d9856b8d547e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: laimassey-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 10.2 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1dd426b14caa5f4845d1edd51c3839b187ba40edf221e0be90737dbf7db27be0
MD5 817e3fc8d0c68d5dea8177bba5bd1111
BLAKE2b-256 8a6540428a7485274b9feb422819a75c923a6614d839f784df3ebd9139a0525c

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