从空格(ASCII码32)到~(ASCII码126)。表内的第一行与表头相同,下面的每一行都与上一行的内容相同,只是字符相左移动了一个位置。这样,下一行的最后一个字符与上一行的第一个字符相同。 为了进行文本编码,可以任意选择一个字符串,称之为编码字符串,也就是常说的密钥。为解释编码方法,我们假设密钥是Walrus,待编码的文本(即常说的明文)是: Meet me in St. Louis 我们在待编码的文本之上重复书写上述密钥,使得其长度与待编码文本相同: WalrusWalrusWalrusWa Meet me in St. Louis 从上述两行文本中按列对应方式依次提取一个字符,可得到多个字符对:WM、ae、le等,这些字符对可用作上表的索引。这样,依次以这些字符对作为索引可从上表查到一系列字符,这些字符就构成了文本编码,即常说的密文。例如,第W行第M列队应得字符是%,因此编码的第一个字符就是%;第a行第e列对应的字符是G;第l行第e列对应的是R。依次进行上述查找操作,可以得到完整的密文 %Grgua=aVauGLol?eiAU 进行相反的操作就可对该文本解码。 编写编码/解码程序,可以对文本文件或键盘输入的字符串进行编码/解码,在选择编码解码后,需要提示用户输入密钥。
上传时间: 2014-01-16
上传用户:Ants
STMicroelectronics STR7xFxx A/D Example Program
标签: STMicroelectronics STR7xFxx Example Program
上传时间: 2015-05-04
上传用户:爱死爱死
Philips LPC22xx A/D Example Program
标签: Philips Example Program LPC
上传时间: 2014-01-09
上传用户:王者A
Philips LPC21xx A/D Example Program
标签: Philips Example Program LPC
上传时间: 2013-12-20
上传用户:zxc23456789
A real-time serial port device driver, works with RT-Linux and RTAI.
标签: real-time RT-Linux device driver
上传时间: 2015-05-04
上传用户:kbnswdifs
Linphone is a web phone: it let you phone to your friends anywhere in the whole world, freely, simply by using the internet. The cost of the phone call is the cost that you spend connected to the internet.
标签: phone Linphone anywhere friends
上传时间: 2015-05-04
上传用户:牛布牛
a program can convert binary to ASC and ASC to binary
标签: binary ASC program convert
上传时间: 2015-05-05
上传用户:kbnswdifs
http://www.math.tu-berlin.de/~bolle/SPARSPAK/index-e.html
标签: tu-berlin SPARSPAK index-e bolle
上传时间: 2013-12-11
上传用户:shawvi
Deleting a node of RB-Tree without recurrence
标签: recurrence Deleting RB-Tree without
上传时间: 2015-05-05
上传用户:yuzsu
TLC0831A8位A/D转换器(C语言驱动程序)
上传时间: 2014-11-17
上传用户:gundan