Midori Explained: The Low-Energy Cipher for Small Devices

Midori explained in plain terms means understanding the block cipher that was designed to sip power, a design that encrypts 64- or 128-bit blocks with the lowest energy per bit its designers could manage. The central question is how a cipher can be both secure and frugal, and the answer is that Midori strips every round down to the cheapest operations that still mix the data thoroughly, so a battery-powered sensor can encrypt for years.

Midori is a lightweight block cipher designed by Subhadeep Banik, Andrey Bogdanov, Takanori Isobe, Kyoji Shibutani, Harunaga Hiwatari, Toru Akishita and Francesco Regazzoni, and published in 2015. It comes in two versions, Midori64 with 16 rounds and Midori128 with 20 rounds, and both use a 128-bit key, which means the cipher is tuned for energy rather than for speed or size alone.

This article explains what Midori is, how it works, and where it runs in the real world.

Key takeaways

  • Midori is a low-energy block cipher from 2015.
  • It encrypts 64- or 128-bit blocks with a 128-bit key.
  • Midori64 runs 16 rounds and Midori128 runs 20 rounds.
  • It uses a 4-bit S-box and a binary mixing matrix.
  • It is used in battery-powered sensors and small devices.

What Midori is

Midori is a cipher that turns a block of plaintext into a block of ciphertext using a 128-bit key, passing the block through a small number of rounds that substitute, permute and mix the data. Each round changes every part of the block a little, and after enough rounds the relationship between the plaintext and the ciphertext is far too tangled for an attacker to undo without the key.

Its signature feature is the energy budget. Most ciphers are judged by speed or by size, but Midori was judged by energy, and every design choice, from the 4-bit S-box to the binary mixing matrix, was picked because it costs the fewest picojoules per bit, which means the cipher is the most frugal of its generation.

The design was a reaction to the needs of the Internet of Things. By the mid-2010s, researchers wanted sensors that could encrypt their readings for years on a single battery, and Midori offered a practical way to do it, because a cipher that sips power can run on a device that a hungrier cipher would drain in months, and that frugality is why the design caught on.

It became one of the best-known low-energy ciphers in the world, and it was studied intensively as a candidate for standardisation. Reaching that level of attention was itself a mark of quality, because a cipher only earns it by surviving public cryptanalysis, and Midori has stood in that conversation since 2015.

Its most famous property is the name. Midori is the Japanese word for green, a nod to the cipher’s low-energy, environmentally friendly design, and the name has stuck through years of study, which is a reminder that cryptographers still enjoy a name with a meaning behind it.

Our guide to SIMON explains the NSA lightweight cipher from the same era, and our guide to PRESENT explains the lightweight cipher Midori was designed to beat on energy.

How Midori works

Everything starts with the state, which is arranged as a four-by-four grid of nibbles for Midori64, or of bytes for Midori128. The plaintext fills the grid, and each round transforms the whole grid at once, which means every cell of the grid is mixed with every other cell over the course of the encryption, and that thorough mixing is what makes the cipher hard to attack.

Each round begins with the substitution layer, which passes every cell of the state through a 4-bit S-box. The S-box is tiny, just sixteen entries, and because it is non-linear, a small change in the input produces a large and unpredictable change in the output, which is the confusion that stops an attacker from tracing bits through the rounds.

The key addition is what makes the cipher work as a whole. A round key derived from the 128-bit master key is XORed into the state, which means the secret key influences the data from the very first step, and because the key schedule is deliberately simple, adding the key costs almost no energy, which is the whole point of the design.

The diffusion layer spreads the effect further. After substitution, the rows of the grid are shifted and the columns are mixed through a binary matrix, so that a change in one cell spreads to every cell of its column, and after a few rounds a single changed bit affects the whole block, which means the cipher achieves full diffusion quickly.

The round constants add the final protection. A small constant that changes with the round number is XORed into the state, which means the rounds behave differently from each other, and because the constants break the symmetry between rounds, an attacker cannot exploit repeated structure in the cipher.

Decryption runs the same rounds in reverse, starting with the final round key and working backwards through the inverse operations. The receiver applies the inverse S-box, the inverse mixing and the round keys in the opposite order, and the plaintext comes back out, which means the same design encrypts and decrypts, and that symmetry is standard for a cipher of this family.

A dark office desk with a laptop showing a glowing green cipher diagram, a brass key and a notebook beside it
A dark office desk with a laptop showing a glowing green cipher diagram, a brass key and a notebook beside it, shows how Midori works: cells take turns through substitution and mixing, round after round, until the block is transformed.

Comparing Midori with other lightweight ciphers

Midori is one of several ciphers built for small devices, and each was built with a different emphasis. SIMON is the NSA design with a Feistel structure, PRESENT is the earlier lightweight cipher with a 64-bit block, and Midori is the one tuned for the lowest energy of the three, while each approach trades something for something else.

The table below sets out the main contrasts between the leading approaches.

Aspect Midori SIMON PRESENT
Block size 64 or 128 bits 32 to 128 bits 64 bits
Key size 128 bits 64 to 256 bits 80 or 128 bits
Energy focus Lowest Low Low
Rounds 16 or 20 32 to 72 31
Best for Battery devices Small hardware RFID tags

The practical result is that Midori is the right choice for battery devices, SIMON suits small hardware, and PRESENT fits RFID tags instead.

Where Midori is used

Research uses it as a case study in energy-aware design. Cryptographers still cite Midori when they discuss how little energy a cipher can use, because it is the clearest example of a design optimised for power rather than speed, and that lesson shapes how new lightweight ciphers are judged today.

Teaching uses it to show how block ciphers work. Midori is clean enough to explain in a lecture and well documented enough to implement in an afternoon, which makes it a favourite example in cryptography courses that cover lightweight design and the ideas that shaped it.

Benchmarks use it to measure low-energy designs. When someone builds a new library or a new piece of hardware, Midori is one of the designs they test, because its simple rounds exercise different parts of a processor than heavier ciphers do, and a platform that runs Midori well is likely to run most ciphers well.

Sensor networks use it where batteries matter most. A small number of devices and deployments include Midori support because it sips power, and those implementations keep running in the background of systems that were built around that choice, even though most new designs choose a standard today.

Standards history uses it to mark the low-energy era. Midori was part of the wave of designs that chased the lowest possible energy per bit, and it represents the most frugal path that wave explored, which means historians of the field return to it whenever they ask what green cryptography looks like.

Strengths and limits

The greatest strength of Midori is its energy efficiency. A cipher that uses the fewest picojoules per bit can run for years on a small battery, and that frugality is real, measured in the energy figures published by its designers and confirmed by independent implementations.

It is also a strength that the design is simple to understand. A cipher built from a 4-bit S-box and a binary matrix is easy to implement, easy to analyse, and easy to test, and that simplicity is worth more than cleverness in a field where hidden complexity usually means hidden flaws.

The limits are real, though, and the biggest is adoption. Midori was not selected as a global standard, which means smaller communities of implementers, fewer independent reviews in recent years, and less tooling than AES enjoys, and a system that must interoperate will usually choose a standard instead.

Midori checklist

  • Use Midori for study and battery devices, not for new systems.
  • Remember it is tuned for energy, not for speed.
  • Study its 4-bit S-box to understand low-energy design.
  • Compare it with SIMON to see the energy trade-off.
  • Note Midori64 runs 16 rounds and Midori128 runs 20.
  • Test against published test vectors before trusting any implementation.
  • Keep keys random and protect them as carefully as with any cipher.
  • Use a proper mode of operation, never raw block encryption.
  • Choose AES for any system that needs real protection today.

Frequently asked questions

What is Midori in simple terms?

It is a lightweight block cipher designed to use as little energy as possible, encrypting 64- or 128-bit blocks with a 128-bit key.

Why is it called Midori?

After the Japanese word for green, a nod to the cipher’s low-energy, environmentally friendly design.

How is Midori different from SIMON?

Both are lightweight ciphers, but Midori is a substitution-permutation network tuned for energy, while SIMON is a Feistel design with many more rounds.

Is Midori still secure?

Yes, no practical attack against it has been published, and its design has survived years of public analysis since 2015.

Where is Midori used?

In sensor networks and research implementations, wherever a cipher must run for years on a small battery.

When should I use Midori?

When you study low-energy cryptography, when you teach lightweight design, or when you want a cipher that shows how little power encryption can use.

The bottom line

Midori explained in one line is this: the green cipher that sips power, a low-energy design from 2015 that proved security can run on a battery.

It is proof that frugal can be strong, and the reason it still matters is that every lightweight cipher designed since has been judged partly by the lesson Midori taught.

This article is general information about how Midori works, not advice about choosing encryption for a particular device or system.

Latest articles

Scroll to Top