How to Use Math to Send Encrypted Messages

The Math Dude: Quick & Dirty Tips to Make Math Simpler

Join Our Community of Science Lovers!

Scientific American presents Math Dude by Quick & Dirty Tips. Scientific American and Quick & Dirty Tips are both Macmillan companies.

Would you believe it’s possible to send someone a secret message secured with absolutely unbreakable encryption using only a bit of simple arithmetic? Well, it is—the solution is surprisingly simple and was used by British, German, and American spy agencies throughout World War II. Curious to know how it works? You’re in luck because today we’re taking our first steps into the world of secret-agent math.

Secret Agent Math, Part 1
Here’s the somewhat ridiculous but hopefully amusing scenario: Imagine you’re a secret agent working for your government’s top-secret espionage agency. You’re sitting alone in a restaurant when the waiter approaches your table and slides a small piece of folded paper in front of you. He indicates that the note was sent by a person seated across the room—you take a look and quickly recognize him to be a trusted colleague. The waiter leaves and you unfold the paper. Given your wealth of experience in these situations, you’re not at all surprised to find a senseless looking series of letters scrawled across the paper: “P–B–A”. Having taken stock of the situation, you realize that this sequence of letters is an encrypted message.


On supporting science journalism

If you're enjoying this article, consider supporting our award-winning journalism by subscribing. By purchasing a subscription you are helping to ensure the future of impactful stories about the discoveries and ideas shaping our world today.


> Continue reading on QuickAndDirtyTips.com

It’s Time to Stand Up for Science

If you enjoyed this article, I’d like to ask for your support. Scientific American has served as an advocate for science and industry for 180 years, and right now may be the most critical moment in that two-century history.

I’ve been a Scientific American subscriber since I was 12 years old, and it helped shape the way I look at the world. SciAm always educates and delights me, and inspires a sense of awe for our vast, beautiful universe. I hope it does that for you, too.

If you subscribe to Scientific American, you help ensure that our coverage is centered on meaningful research and discovery; that we have the resources to report on the decisions that threaten labs across the U.S.; and that we support both budding and working scientists at a time when the value of science itself too often goes unrecognized.

In return, you get essential news, captivating podcasts, brilliant infographics, can't-miss newsletters, must-watch videos, challenging games, and the science world's best writing and reporting. You can even gift someone a subscription.

There has never been a more important time for us to stand up and show why science matters. I hope you’ll support us in that mission.

Thank you,

David M. Ewalt, Editor in Chief, Scientific American

Subscribe