代替密码
替代密码(substitution cipher):就是明文中的
每一个字符被替换成密文中的另一个字符。接
收者对密文做反向替换就可以恢复出明文。
在经典的密码学中,有几种类型的替代密码:
1.简单替代密码(simple substitution cipher)
2.多名或同音替代密码(homophonic subdtitution cipher)
3.多表替代密码(polyalphabetic substitution cipher)
4.多字母替代密码(polygram substitution cipher)
(代替规则、密文所用字符、明文中被代替的基本单位)