![](https://img-blog.csdnimg.cn/img_convert/763393e4efc6b8e582903f835b9e6050.png)
python密码学凯撒密码
Hello everyone, in this tutorial you’ll learn about Caesar cipher in Python. If you have learned about cryptography then you should have known this term Caesar cipher. Well if you don’t know what is this then let me explain it to you.
大家好,在本教程中,您将学习Python中的Caesar密码。 如果您了解密码学,那么您应该知道这个术语凯撒密码。 好吧,如果您不知道这是什么,那么让我向您解释。
What is Caesar Cipher?
什么是凯撒密码?
In cryptography, Caesar cipher is one of the simplest and most widely known encryption techniques. It is also known with other names like Caesar’s cipher, the shift cipher, Caesar’s code or Caesar shift. This encryption technique is used to encrypt plain text, so only the person you want can read it. The method is named after Julius Caesar, who used it in his private correspondence.
在密码术中,凯撒密码是最简单和最广为人知的加密技术之一。 也有其他名称,例如凯撒密码,移位密码,凯撒代码或凯撒移位。 这种加密技术用于加密纯文本,因此只有您想要的人才能阅读它。 该方法以尤利乌斯·凯撒(Julius Caesar)命名,他在私人通讯中使用了该方法。
In this encryption technique, to encrypt our data, we have to replace each letter in the text by a some other letter at a fixed difference. Let’s say, there is a letter ‘T’ then with a ri