Secret codes

The QR code

Date: 1994Place: Kariya (Japan)Who?: Masahiro Hara (Denso Wave)

A chequerboard of little squares that can be read any way up

Codes and signals
codes-secrets.curiopedia.eu
Illustration drawn for the site

In brief

Invented in Japan in 1994 to track car parts, the QR code holds far more information than a barcode and can be read in a second with a phone. Its three big squares in the corners tell the reader which way round it is.

The story

At Denso Wave, a company in the Japanese car industry, the engineer Masahiro Hara was looking for a faster, richer code than the barcode. He said he was inspired by the game of go, with its black and white stones on a grid. “QR” stands for “Quick Response”: the code can be read at full speed, even at an angle.

A QR code can hold up to 7,089 digits. It is also very robust: thanks to cleverly repeated information, it remains readable even if nearly a third of it is damaged or hidden by a logo. The company let everyone use it freely, which explains its worldwide success with smartphones, from restaurant menus to train tickets.

Example

The three big corner squares act as landmarks; the rest of the grid holds the data and its “spare wheel”.

Did you know?

A QR code is not secret: any phone can read it. Before following an unknown link, it is wise to check where it leads!

Sources: D. Kahn, The Codebreakers, 1967 (rev. ed. 1996); S. Singh, The Code Book, 1999; F. L. Bauer, Decrypted Secrets, 4th ed., 2007; C. P. Bauer, Secret History: The Story of Cryptology, 2nd ed., 2021; texts written for this site.

In the same family: Codes and signals