01:栏杆密码
这个东东,我确信在座各位都听过[doge]
我们以下面这个东东做例子:
\color{#0000ff}\texttt{MEET ME TONIGHT}
数一下有几个字母。Tips:
能被4整除就很不戳了
没被四整除的话,你需要加上许多许多没用的字母使其能被四整除
我们这条信息有13个字母,加上3个没用的东西:
\color{#0000ff}\texttt{QXZ}
(你想加7个也行,11个也行,加完之后能被4整除就行)
现在,把它们排列成栏杆状:
\color{#0000ff}\texttt{M E M T N G T X}
\color{#0000ff}\texttt{ E T E O I H Q Z}
(我不觉得这很像栏杆啊[doge])
然后把第一行和第二行按顺序抄下来:
\color{#0000ff}\texttt{M E M T N G T X E T E O I H Q Z}
Tips:
如果你把这些字母分成4个一组,就可以成功地把敌人绕晕(((
反正它现在长这样。妥妥的!
\color{#0000ff}\texttt{MEMT NGTX ETEO IHQZ}
别问我咋解密,倒着做一遍就行了[doge]
01: Fence ciphers
Let us assume that you want to encrypt the message
\color{#0000ff}\texttt{MEET ME TONIGHT}
Count the number of letters in it. If it can be divided by 4, then good. If not, add enough nulls ( letters that have no actual meaning ) at the end, and make it divide by four. In our message, there is 13 letters, so we have to add 3 nulls
\color{#0000ff}\texttt{QXZ}
Now position them so as to make them look like a fence:
\color{#0000ff}\texttt{M E M T N G T X}
\color{#0000ff}\texttt{ E T E O I H Q Z}
( Read in zigzag order )
And copy the first line, then the second, and we get:
\color{#0000ff}\texttt{M E M T N G T X E T E O I H Q Z}
If you divide them into groups of 4 or 5, it will make it more difficult to decipher. We will use groups of 4 in this book. After that, we get:
\color{#0000ff}\texttt{MEMT NGTX ETEO IHQZ}
成功水了一篇博客[doge]
之前在OierBBS发的时候没有翻译,现在加上了。