Nepedia
Back to Discover
Fluent Reader
💻

One-time pad

technology Maturity 11-13 Next article →

A one-time pad is a special way to hide secret messages. It is a type of encryption, which is a way to scramble information. This method is very famous because it is mathematically unbreakable. If you follow the rules, no one can ever read your message. Even the most powerful computers in the world cannot crack it. This makes it a very important tool for important secrets.

NSA DIANA one time pad
NSA DIANA one time pad

To make the code, you need a secret key. This key must be a string of truly random characters. You pair each part of your message with a part of the key. Then, you combine them using a math process called modular addition. For example, if you use letters, you turn them into numbers first. You add the message number and the key number together. If the sum goes past the end of the alphabet, you just start again from the beginning. The result is a scrambled message called ciphertext.

NSA DIANA one time pad
NSA DIANA one time pad

People have been working on these systems for a long time. Frank Miller first described a version for telegraphs in 1882. Later, Gilbert Vernam invented an electrical version for teleprinters. He received a patent for his work in 1919. Joseph Mauborgne helped improve the system by using random keys. He realized that a totally random key makes the code impossible to break. This led to the first one-time tape systems.

NSA DIANA one time pad
NSA DIANA one time pad

There are many important facts about how this works. The key must be at least as long as the message itself. It must also be kept completely secret by both people. You must never use any part of the key ever again. In the 1920s, German cryptographers used paper pads for this. Each page had a serial number and eight lines of numbers. They would destroy the paper immediately after they finished using it.

NSA DIANA one time pad
NSA DIANA one time pad

This concept links to how we protect information today. A scientist named Claude Shannon proved its perfect secrecy in 1949. He showed that the scrambled message gives no clues about the real one. Before him, Vladimir Kotelnikov had also proved this in 1941. Today, we can even use quantum physics to do something similar. While it is hard to use for everything, it remains the gold standard for safety.

NSA DIANA one time pad
NSA DIANA one time pad
372 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (1)
NSA DIANA one time pad.tiff
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.