应用密码学密码学_密码学中的围栏密码

应用密码学密码学

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

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值