K012 / Symmetric ciphers (block and stream)
IDEA
IDEA is a symmetric cipher operating on 64-bit blocks.
CRYPTOGRAPHY LAB / K012
Cryptography Lab · IDEA
Run real computations and inspect intermediate states step by step.
Educational only. Never enter real passwords or secret keys. Computation stays in your browser; input and trace values are not sent to a server. Do not use this implementation in production.
IDEA (8 rounds and output transform)
See the scope above for fixed examples, reduced parameters and supported variants. Standard operation names and formulas are retained.Output
Previous state
- Definition and overview
- IDEA is a symmetric cipher operating on 64-bit blocks. Source document ↗
- Classification and reversibility
- A symmetric block cipher using the same algorithm for encryption and decryption. Source document ↗
- Key or secret requirements
- Requires a 128-bit secret symmetric key. Source document ↗
- Operating principle and structure
- An 8.5-round Lai–Massey block cipher mixing XOR, modular addition and modular multiplication. Source document ↗
- Key size, block size and parameters
- 128-bit key, 64-bit block and 8.5 rounds (52 subkeys). Source document ↗
- Security strength and recommendation
- Historically considered secure; now a legacy cipher replaced by AES and others. Source document ↗
- Known attacks and vulnerabilities
- Attacks on reduced-round IDEA have been reported. Source document ↗
- Standards and certification
- IETF RFC 3058 specifies incorporating IDEA into CMS/S/MIME. Source document ↗
- Typical uses
- Used in legacy encryption such as PGP v2.0. Source document ↗
- Implementations, libraries and tools
- Libraries include BouncyCastle and implementations in Java/Crypto++. Source document ↗
- Decryption or decoding
- Decryption uses the same IDEA algorithm with a decryption key schedule. Source document ↗
- Advantages
- Uses operations easy to implement in both hardware and software. Source document ↗
- Limitations and cautions
- Caution is required due to limited formal standardization and broad verification. Source document ↗
- Distinguishing encryption, encoding and hashing
- IDEA is keyed reversible encryption, distinct from Base64/hex encoding and hashing. Source document ↗
Practical examples
Example
Input a 64-bit plaintext block and 128-bit secret key to obtain an IDEA ciphertext block. Recover plaintext using the same algorithm and decryption key schedule. Actual keys are not shown.
Procedure
Encryption: prepare secret key and IV if needed, apply padding and mode, encrypt with IDEA and add a separate integrity tag. Decrypt with the same key/IV and decryption schedule, then remove padding. Base64/hex is encoding/decoding, not encryption/decryption.
Scenario
Restrict use to legacy interoperability or reading existing IDEA data such as PGP 2.x. Replace IDEA with modern AEAD for new security designs.
Pitfalls and alternatives
Beware 64-bit blocks, ECB, padding oracles, unauthenticated encryption and key reuse or management problems. Prefer AES-GCM or ChaCha20-Poly1305 for new systems.
References
- Untitled result ↗
- IDEA | Springer Nature Link ↗
- International Data Encryption Algorithm (IDEA) ↗
- A SIMPLIFIED IDEA ALGORITHM ↗
- draft-irtf-cfrg-cipher-catalog-01 ↗
- RFC 3058 - Use of the IDEA Encryption Algorithm in CMS ↗
- SSI Lecture 3 Symmetric Encryption ↗
- IDEA-128 Encryption and Decryption in C# ↗
- IDEA — secure-crypto.org ↗