英语 英语 日语 日语 韩语 韩语 法语 法语 德语 德语 西班牙语 西班牙语 意大利语 意大利语 阿拉伯语 阿拉伯语 葡萄牙语 葡萄牙语 越南语 越南语 俄语 俄语 芬兰语 芬兰语 泰语 泰语 泰语 丹麦语 泰语 对外汉语

数学英语 30 How to Use Math to Send Encrypted Messages

时间:2010-11-19 03:48来源:互联网 提供网友:fi1171   字体: [ ]
特别声明:本栏目内容均从网络收集或者网友提供,供仅参考试用,我们无法保证内容完整和正确。如果资料损害了您的权益,请与站长联系,我们将及时删除并致以歉意。
    (单词翻译:双击或拖选)

by Jason Marshall

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.
The podcast edition of this article was sponsored by Go to Meeting. With this meeting service, you can hold your meetings over the Internet and give presentations, product demos and training sessions right from your PC. For a free, 45 day trial, visit GoToMeeting.com/podcast.
 
Secret Agent Math, Part 1
Here’s the somewhat ridiculous but hopefully amusing scenario1: Imagine you’re a secret agent working for your government’s top-secret espionage2 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 scrawled3 across the paper: “P–B–A”. Having taken stock of the situation, you realize that this sequence of letters is an encrypted message.
How to Decrypt a Secret Message
You pull out a small notepad that was issued to you before leaving on your trip. Its pages contain sequences of completely random4 numbers between zero and twenty-five. Armed with your notepad and the scrambled5 secret message, you begin the decryption process. Here’s how it works. Start by looking up the first random number in your notepad—in this case it’s two—and then cross it out so you don’t accidentally use it again. This first number is used to decrypt the first letter of your message. Beginning with the first letter in your message, “P,” count forward through the alphabet two characters—“Q” is one and “R” is two. So “R” is the first letter of your decoded6 message.
Okay, now that you’ve got that one figured out, all you have to do is repeat the process for each of the final two letters of your message. You look-up the next random number in your notepad—nineteen. So start at the letter “B”—the second letter in the scrambled message—and count forward nineteen letters until, eventually, you reach the letter “U”. This is the second letter in your decoded message. Finally, for the last letter “A,” you see the next random number in your notepad is thirteen. You count forward thirteen letters from “A” and arrive at “N.” So, you’ve now got your entire message decrypted—and it says: “R–U–N.” Run?!
The One-Time Pad Method of Encryption
Alright, time out. I know this scenario is probably pretty alarming, and you’re no doubt eager to learn the fate of your dramatized alter-ego. But before we get to that, let’s take a minute to talk about this encryption method called the “one-time pad” that played a major role in sending secret messages throughout much of the 20th century. The name “one-time pad” comes from the fact that the series of random numbers in the notepad must be used only one time. If a pad is reused, patterns can emerge that give away the random numbers in the pad, and the encryption can then be broken quite easily by an intercepting7 party. Additionally, these numbers must be absolutely random (not just sort of random) or, once again, patterns can develop that make it easy to figure out the contents of the pad—and, if someone knows the numbers in your pad, your encryption is useless.
Secret Agent Math, Part 2
Now, let’s get back to the story. Recall that you’ve just deciphered a secret message telling you to “Run!” You ponder for a moment whether or not the message is a joke—if your running was that urgent, why wouldn’t your colleague just yell? But then you remember that this colleague is known for strictly8 over-following standard industry encryption protocols9, so you realize it is a real message and make a mad dash for the door. But having taken so long to comprehend the urgency of the message, you’re grabbed and hustled10 into the trunk of a car and driven away—leaving your colleague to ponder the folly11 of his ways. Apparently12, he now realizes, encryption isn’t always necessary—sometimes simple solutions are better. But, your alter-ego’s misfortune in our drama is your own good-fortune in real life since, if for some bizarre reason you ever need to secretly share information with someone, you now can do it using a one-time pad!
The Math Behind One-Time Pad Encryption
Before wrapping-up, let’s take a minute to talk a little more about the math behind one-time pad encryption. Start by assigning each letter of the alphabet a corresponding integer value between 1 and 26. A=1, since “A” is the first letter of the alphabet, B=2, since “B” is the second letter, and so on until you get to Z=26, the last letter of the alphabet. If you take the integer value that corresponds to a particular scrambled letter in your encrypted message (say the letter is “P” with an integer value of 16) and add it to the associated random number from a one-time pad (say the number is two), then you get a new integer—in this case 16 + 2 = 18—which can then be converted back into the letter “R,” which you’ll recognize to be the first decrypted letter in the message from our story.
How to Solve Math Problems Smartly
That’s all well and good, but here’s an interesting case: What would happen if the scrambled letter you were trying to decrypt was “Y,” and the corresponding random number was 25? If we count forward through the alphabet from “Y,” we’ll obviously get to “Z,” but then what? Well, in this case, the answer is to loop back around and start again at “A.” That’s the way the one-time pad system is defined to work. So you could start at “Y,” count forward to “Z,” jump back to “A,” and then proceed 23 more letters forward and eventually arrive at “X.” But how about this: Instead of counting forward 25 letters from “Y,” couldn’t you also just count backward one letter? And isn’t counting backward one letter a lot easier? And a lot less error prone13 too? It is.
So what’s my point here? Well, in math, as in life, there’s usually more than one way to solve a problem—and some ways are easier than others. So here’s the quick and dirty tip: work smart. Simply yelling “Run!” instead of going to the trouble of sending an encrypted message would be smart. Counting one letter backward through the alphabet instead of twenty-five forward would be smart too. Think before acting14 and you’ll solve more problems while working less—that’s a pretty tough combination to beat!
Wrap Up
And speaking of beat...up: Whatever happened to our favorite secret agent? Will math save the day? Be sure to check out the next “Secret-Agent Math” episode to find out.
Thanks again to our sponsor this week, Go To Meeting. Visit GoToMeeting.com/podcast and sign up for a free 45 day trial of their online conferencing service.
Please email your math questions and comments to .........You can get updates about the Math Dude podcast, the “Video Extra!” episodes on YouTube, and all my other musings about math, science, and life in general by following me on Twitter. And don’t forget to join our great community of social networking math fans by becoming a fan of the Math Dude on Facebook.

Until next time, this is Jason Marshall with The Math Dude’s Quick and Dirty Tips to Make Math Easier. Thanks for reading, math fans!
 


点击收听单词发音收听单词发音  

1 scenario lZoxm     
n.剧本,脚本;概要
参考例句:
  • But the birth scenario is not completely accurate.然而分娩脚本并非完全准确的。
  • This is a totally different scenario.这是完全不同的剧本。
2 espionage uiqzd     
n.间谍行为,谍报活动
参考例句:
  • The authorities have arrested several people suspected of espionage.官方已经逮捕了几个涉嫌从事间谍活动的人。
  • Neither was there any hint of espionage in Hanley's early life.汉利的早期生活也毫无进行间谍活动的迹象。
3 scrawled ace4673c0afd4a6c301d0b51c37c7c86     
乱涂,潦草地写( scrawl的过去式和过去分词 )
参考例句:
  • I tried to read his directions, scrawled on a piece of paper. 我尽量弄明白他草草写在一片纸上的指示。
  • Tom scrawled on his slate, "Please take it -- I got more." 汤姆在他的写字板上写了几个字:“请你收下吧,我多得是哩。”
4 random HT9xd     
adj.随机的;任意的;n.偶然的(或随便的)行动
参考例句:
  • The list is arranged in a random order.名单排列不分先后。
  • On random inspection the meat was found to be bad.经抽查,发现肉变质了。
5 scrambled 2e4a1c533c25a82f8e80e696225a73f2     
v.快速爬行( scramble的过去式和过去分词 );攀登;争夺;(军事飞机)紧急起飞
参考例句:
  • Each scrambled for the football at the football ground. 足球场上你争我夺。 来自《现代汉英综合大词典》
  • He scrambled awkwardly to his feet. 他笨拙地爬起身来。 来自《简明英汉词典》
6 decoded ad05458423e19c1ff1f3c0237f8cfbed     
v.译(码),解(码)( decode的过去式和过去分词 );分析及译解电子信号
参考例句:
  • The control unit decoded the 18 bits. 控制器对这18位字进行了译码。 来自《简明英汉词典》
  • Scientists have decoded the dog genome. 科学家已经译解了狗的基因组。 来自辞典例句
7 intercepting 610ea325c8da487d3cb8c3e52877af6a     
截取(技术),截接
参考例句:
  • The police had been intercepting my mail, ie reading it before it was delivered. 警方一直截查我的邮件。
  • We've been intercepting radio transmissions from Moscow. 我们已从莫斯科拦截到无线电信号。
8 strictly GtNwe     
adv.严厉地,严格地;严密地
参考例句:
  • His doctor is dieting him strictly.他的医生严格规定他的饮食。
  • The guests were seated strictly in order of precedence.客人严格按照地位高低就座。
9 protocols 66203c461b36a2af573149f0aa6164ff     
n.礼仪( protocol的名词复数 );(外交条约的)草案;(数据传递的)协议;科学实验报告(或计划)
参考例句:
  • There are also protocols on the testing of nuclear weapons. 也有关于核武器试验的协议。 来自辞典例句
  • Hardware components and software design of network transport protocols are separately introduced. 介绍系统硬件组成及网络传输协议的软件设计。 来自互联网
10 hustled 463e6eb3bbb1480ba4bfbe23c0484460     
催促(hustle的过去式与过去分词形式)
参考例句:
  • He grabbed her arm and hustled her out of the room. 他抓住她的胳膊把她推出房间。
  • The secret service agents hustled the speaker out of the amphitheater. 特务机关的代理人把演讲者驱逐出竞技场。
11 folly QgOzL     
n.愚笨,愚蠢,蠢事,蠢行,傻话
参考例句:
  • Learn wisdom by the folly of others.从别人的愚蠢行动中学到智慧。
  • Events proved the folly of such calculations.事情的进展证明了这种估计是愚蠢的。
12 apparently tMmyQ     
adv.显然地;表面上,似乎
参考例句:
  • An apparently blind alley leads suddenly into an open space.山穷水尽,豁然开朗。
  • He was apparently much surprised at the news.他对那个消息显然感到十分惊异。
13 prone 50bzu     
adj.(to)易于…的,很可能…的;俯卧的
参考例句:
  • Some people are prone to jump to hasty conclusions.有些人往往作出轻率的结论。
  • He is prone to lose his temper when people disagree with him.人家一不同意他的意见,他就发脾气。
14 acting czRzoc     
n.演戏,行为,假装;adj.代理的,临时的,演出用的
参考例句:
  • Ignore her,she's just acting.别理她,她只是假装的。
  • During the seventies,her acting career was in eclipse.在七十年代,她的表演生涯黯然失色。
本文本内容来源于互联网抓取和网友提交,仅供参考,部分栏目没有内容,如果您有更合适的内容,欢迎点击提交分享给大家。
------分隔线----------------------------
顶一下
(3)
100%
踩一下
(0)
0%
最新评论 查看所有评论
发表评论 查看所有评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
验证码:
听力搜索
推荐频道
论坛新贴