← Cryptography guide

K020 / Symmetric ciphers (block and stream)

PRESENT

PRESENT lightweight cipher · Survey date 2026-12-05

An ultra-lightweight block cipher designed by Bogdanov and others in 2007.

CRYPTOGRAPHY LAB / K020

Cryptography Lab · PRESENT

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: Limited implementation

PRESENT-80 (31 rounds)

See the scope above for fixed examples, reduced parameters and supported variants. Standard operation names and formulas are retained.

Open lab →

Definition and overview
An ultra-lightweight block cipher designed by Bogdanov and others in 2007. Source document ↗
Classification and reversibility
A reversible block cipher with a decryption function. Source document ↗
Key or secret requirements
Requires an 80- or 128-bit secret key. Source document ↗
Operating principle and structure
Linear bit permutations and nonlinear substitution layers use a single 4-bit S-box. Source document ↗
Key size, block size and parameters
31 rounds, 64-bit blocks, 80/128-bit keys. Source document ↗
Security strength and recommendation
The 80-bit version is recommended as sufficient for low-security tag applications. Source document ↗
Known attacks and vulnerabilities
Truncated differential attacks on up to 26 of 31 rounds have been reported. Source document ↗
Standards and certification
Included in the ISO/IEC 29192-2:2012 lightweight block cipher standard. Source document ↗
Typical uses
Recommended for low-security tag-based applications. Source document ↗
Implementations, libraries and tools
Experimental and educational implementations exist; their documentation forbids production use. Source document ↗
Decryption or decoding
Decrypt an 8-byte ciphertext block with the same key. Source document ↗
Advantages
Reportedly higher throughput and smaller area than comparable lightweight ciphers. Source document ↗
Limitations and cautions
64-bit blocks risk collisions with large volumes; limit per-key usage and rekey. Source document ↗
Distinguishing encryption, encoding and hashing
PRESENT is a block cipher, not encoding or 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 an 80/128-bit key; 31 SPN rounds yield a 64-bit ciphertext. The same key and decryption function restore the original.

Procedure

Split into 64-bit blocks, select key, generate round keys, repeat round-key XOR, S-box and bit permutation 31 times, then final key XOR. Decrypt by inverse transformations with the same key. Base64-like encoding is usually keyless representation conversion, not encryption.

Scenario

Protect short blocks in hardware-constrained IoT tags or sensor nodes. Limit transmission volume and rekey intervals; combine with upper-layer authentication or AEAD when integrity is needed.

Pitfalls and alternatives

Avoid large volumes under one key; impose data limits and rekeying. For general high-security uses consider at least 112-bit security and authenticated encryption. Avoid production use of experiments, distinguish encoding/hashing, and design key management and integrity separately.

References