📜  块密码和转置密码的区别

📅  最后修改于: 2021-09-13 03:17:18             🧑  作者: Mango

1. 块密码:
分组密码是用于将明文转换为密文的对称密钥密码。它使用简单的替换过程,有时也使用置换过程,其中将纯文本块替换为任意位的密文。

2. 转置密码:
转置密码重新排列纯文本字符的位置。它改变了字符的位置,但不会改变字符的身份。

以下是块密码和转置密码之间的区别:

Block Cipher Transposition Cipher
In block cipher, a block of plain text is considered as a whole. In transposition cipher, plain text is written down as a sequence.
It produces a cipher text block of equal length of plain text. It reads the sequences as rows.
In block cipher, error in transmitting one block does not affect other blocks. In transposition cipher, error in one letter will affect the whole cipher text.
Encryption process is slow in block cipher. Encryption process is fats in transposition cipher.
Security of block cipher depends on the design of encryption function. It can be made more secure by performing more than one transposition.
Plain text is broken into blocks and algorithm operates on each block independently. Plain text is broken into letters and algorithm operates on each letter independently.
The complexity of block cipher is simple. While transposition cipher is more complex.
In block cipher, characters lose their identity. Characters don’t lose their identity in transposition cipher.