跳到正文

剪贴板

剪贴板 2wbw4xpn

原文
剪贴板信息

剪贴板信息

收录
更新

我们先来看一个例子:

密文:018201020363048404620453036202420205\texttt{018201020363048404620453036202420205}

明文:hello world\texttt{hello world}

我们先来看一张图:

a=>01 b=>02 c=>03 d=>04 e=>05 f=>06 g=>07 h=>08 i=>09 j=>10\fcolorbox{black}{white}{\texttt{a=>01 b=>02 c=>03 d=>04 e=>05 f=>06 g=>07 h=>08 i=>09 j=>10}}

k=>11 l=>12 m=>13 n=>14 o=>15 p=>16 q=>17 r=>18 s=>19 t=>20\fcolorbox{black}{white}{\texttt{k=>11 l=>12 m=>13 n=>14 o=>15 p=>16 q=>17 r=>18 s=>19 t=>20}}

u=>21 v=>22 w=>23 x=>24 y=>25 z=>26\fcolorbox{black}{white}{\texttt{u=>21 v=>22 w=>23 x=>24 y=>25 z=>26}}

在让我们分解一下密文(用“/”隔开):

0182/0102/0363/0484/0462/0453/0362/0242/0205\texttt{0182/0102/0363/0484/0462/0453/0362/0242/0205}

让我们拿出一段看看:

024=>加密后的字母 3=>这个字母的密钥 => h\fcolorbox{black}{white}{\texttt{024=>加密后的字母 3=>这个字母的密钥}} \texttt{=>} \texttt{h}

你会发现24÷3=8\texttt{24÷3=8},对应的字母是 h\texttt{h} (在图上 h=>08\texttt{h=>08} )

其实:分解出单个字母,然后找到他对应的数字,乘上他的密钥。然后把密钥加在他后面。连起来,就可以了,例如:

a=>0011/0022/0033/0044/0055......\fcolorbox{black}{white}{\texttt{a=>0011/0022/0033/0044/0055......}}

b=>0021/0042/0063/0084/0105......\fcolorbox{black}{white}{\texttt{b=>0021/0042/0063/0084/0105......}}

c=>0031/0062/0093/0124/0155......\fcolorbox{black}{white}{\texttt{c=>0031/0062/0093/0124/0155......}}

......\texttt{......}

z=>0261/0522/0783/1044/1305......\fcolorbox{black}{white}{\texttt{z=>0261/0522/0783/1044/1305......}}

一个单词加密的例子:

密文:hello\texttt{hello} 密钥分别是:1 2 3 4 5\texttt{1 2 3 4 5}

加密过程:

h=>8    e=>5    l=>12   l=>12   o=>15 \texttt{h=>8    e=>5    l=>12   l=>12   o=>15 }

8=>8    5=>10   12=>36   12=>48   15=>75\texttt{8=>8    5=>10   12=>36   12=>48   15=>75}

8=>008   10=>010  36=>036  48=>048  75=>075\texttt{8=>008   10=>010  36=>036  48=>048  75=>075}

008=>0081 010=>0102 036=>0363 048=>0484 075=>0755\texttt{008=>0081 010=>0102 036=>0363 048=>0484 075=>0755}

0081+0102+0363+0484+0755=00810102036304840755\texttt{0081+0102+0363+0484+0755=00810102036304840755}

密文:00810102036304840755\texttt{00810102036304840755}