Spiegato, Home

Technology and Gadgets

What is a One-Time Pad?

  • Published by Spiegato
  • 2 min read

A one-time pad is a type of encryption algorithm used in cryptography, where the key that encrypts and decrypts the message is used only one time. Obviously, a one-time pad, sometimes shortened to OTP, is not the most efficient use of resources. The one-time pad requires just as many resources to create it as a multiple-use key, but it must be destroyed after one use. When proper procedures are followed, however, the OTP is impossible to break because each one is different, making it worthwhile to create in certain situations.

Essentially, cryptography is the process of hiding information, and a one-time pad is a tool used to hide the data inside a code. When using cryptography, one person would encrypt a message, which involves applying an OTP or another type of key to the message. The person receiving the message would then use the key to decrypt and read the message. Many people think of cryptography only as a method by which governments and military groups create a code for disguising messages. Different types of cryptography are used to hide information in a variety of formats, however, such as with computer passwords and ATM cards.

To be considered a perfect one-time pad, the key must contain exactly as much data as the text to be encrypted, also called the plaintext. Only two copies of the key may exist, one for the sender and one for the receiver, and both parties must destroy the key upon decryption of the message. Finally, the key must be random. Some “random-number generators” on computers actually follow a pattern to generate the numbers, only giving the appearance of being random.

When used properly, the one-time pad is considered perfectly secure because someone attempting to decipher the code could not rely on other codes or messages for clues. A cryptanalyst is able to compare and contrast several messages that employ a multiple-use key, applying statistical analysis or pattern matching and eventually solving the key. With a one-time key, however, the only clues are in the single message, making it impossible for the cryptanalyst to break the key.

The term “pad” refers to the time when the code was printed on a pad of paper filled with random OTP codes. After using the code one time, the top sheet of the pad would be destroyed, revealing the next code for the next one-time pad. Computers randomly generate today’s OTPs, as they have for many years.

Key terms in this article

Related articles

  • What is a Mouse Pad?

    The first mouse pad was designed in 1969, though it would be many years before they became such popular items in homes and offices. The essential purpose…

  • What is One Laptop Per Child (OLPC)?

    One Laptop Per Child (OLPC) is a charitable organization which is focused on providing educational tools to the developing world. The organization…

  • What is a Heatsink Thermal Pad?

    A heatsink thermal pad is a small, usually square pad that is typically used with a central processing unit (CPU) and heatsink to create a better system…

  • What is an Optical Mouse Pad?

    An optical mouse pad is, quite simply, a mouse pad that has been optimized to work well with an optical mouse. The differences between how an optical…

  • What is Screen Time?

    Between e-mail, instant messaging, video games, and television, electronic media has infiltrated almost every aspect of our daily lives. However, the…