IDEA Mini is a small pedagogical implementation of the IDEA cipher.
The project follows the structure of IDEA with reduced sizes to keep the code readable:
- 16-bit block
- 32-bit key
- 4-bit words
- 4 full rounds + 1 output transformation round
This project is not a security library and must not be used to protect real data. Its purpose is to clearly demonstrate:
- subkey generation
- the modular arithmetic used by IDEA
- the encryption / decryption flow
- a simple CLI and automated tests
Installation:
python3 -m pip install -r requirements.txtRun the demo:
python3 idea_mini.py demoEncrypt a block:
python3 idea_mini.py encrypt --block 9cac --key dc6f3f59Decrypt a block:
python3 idea_mini.py decrypt --block 6d28 --key dc6f3f59python3 -m unittest discover -s tests -videa_mini.py: implementation, subkey generation, and CLItests/test_idea_mini.py: unit tests and round-trip testsrequirements.txt: project dependencies