← Cryptography guide

K012 / Symmetric ciphers (block and stream)

IDEA

IDEA cipher · Survey date 2026-12-05

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.

Scope: Standard operation

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.

Open lab →

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

Examples are illustrative; they are not execution-tested implementations or operational recommendations.

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.

Diagram source ↗

References