密码学中几个小故事的破解
(2009-09-19 22:44:29)
标签:
密码学破解playfairpt-109海军上尉隐写术greetingstoallatoxfordit |
1.美国海军上尉截获日本毁灭者准备击沉PT-109的用playfair加密的密文:
KXJEY
KREHE GOYFI
BOTEI
GDSON SXBOU YWRHE BAAHY USEDQ
密钥: royal new zealand navy ,
比较特殊的是,要将TT换为tt 。明文:pt boat one owe nine lost in action in blackett strait two miles swmeresucoce(不知怎样分解出单词) crew of twelve.request any information.
2.隐写术 (侦探Morse的困惑)
原文比较长,我只写个开头吧
Dear George,
Greetings to all at Oxford.Many thanks for your...
真实的寓意隐藏在每行的最后一个单词中,连接起来就是:your package ready friday 21st ,room
three,please destroy this immediately.
3.隐写术 (地主彼得的迷惑)
将密文每8个一组(不包括标点和空格,8 是密钥中最大的整数),密钥的值就是明文在分组中的位置。
程序实现如下:
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
}
最终明文: he sittech(古英语) between the chrubims the isles maybe glad thereof as the rivers in the south