应用密码学密码学
In Rail Fence Cipher, given a plain-text message and a numeric key then cipher/decipher the given text using the Rail Fence algorithm.
在Rail Fence Cipher中 ,给定纯文本消息和数字键,然后使用Rail Fence算法对给定文本进行加密/解密。
The rail fence cipher is also called a "zigzag cipher" because we make a rectangle box and write plain text into it in a zigzag form. It is a form of transposition cipher that jumbles up the order of the letters of a message using a basic algorithm. It derives its name from how it is encrypted.
铁路围栏密码也称为“之字形密码”,因为我们制作了一个矩形框,并以之字形形式将纯文本写入其中。 它是一种转位密码,它使用一种基本算法来弄乱消息字母的顺序。 它从其加密方式获得其名称。
The rail fence cipher works by writing your plain text or message on alternate lines across the prail and then reading off each line or rows in turn by turn.
围栏密码的工作原理是,在遍历目录的交替行上书写纯文本或消息,然后依次轮流读取每行或每一行。
加密 (Encryption)
In a transposition cipher, the order of the alphabets is mixed up or we can say rearrange to obtain the cipher-text or encrypted text.
在换位密码中,字母的顺序混合在一起,或者我们可以说重新排列以获得密文或加密文本。
In the rail fence cipher, the plain-text is written as zigzag way as first