希尔密码
It is a polygraphic substitution cipher that depends on linear algebra. Every letter from the alphabet is represented by several modulo 26. Simply, we write as A = 0, B = 1, ..., Z = 25 is used, but this is not a correct feature of the cipher.
这是一个依赖于线性代数的测谎替代密码。 字母表中的每个字母都由26为模。简单地,我们写为A = 0,B = 1,...,Z = 25 ,但这不是密码的正确特征。
To encrypt a message, each block of n letters is multiplied by an invertible n × n matrix, against modulus 26 or we can say the multiple inverses of n.
为了加密消息,将n个字母的每个块都乘以可逆n×n矩阵(模数为26)或我们可以说n的多个逆。
To decrypt the message, every block is multiplied by the inverse of the matrix or inversed matrix used for encryption.
为了解密该消息,将每个块乘以用于加密的矩阵或逆矩阵的逆。
The matrix used for encryption is the plain text and one matrix is formed is cipher key when we combine or multiple them we get the new matrix called ciphertext, and the key should be chosen randomly from the set of invertible n × n matrices (modulo 26).
用于加密的矩阵是纯文本,当我们将它们组合或相乘时,形成的一个矩阵是密码密钥,得到一个新的矩阵,称为密文,密钥应从可逆n×n矩阵集中随机选择(取模26 )。
加密 (Encryption)
We have to do encryption on the message 'ACT' (n=3). The key is 'GYBNQKURP' which can be written as the n x n matrix that is 3 x 3 matrix,
我们必须对消息“ ACT”(n = 3)进行加密。 关键是“GYBNQKURP”,其可以被写为NxN矩阵是3×3矩阵,