📜  经典密码学:将经典密码与 pycipher 结合使用. - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:54.633000             🧑  作者: Mango

代码示例1
network@node1:~$ python
Python 2.7.3 (default, Feb 27 2014, 20:00:17) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pycipher
>>> pycipher.Caesar(3).encipher("kartik")
'KUMAR'
>>> pycipher.Caesar(3).decipher("kumar")
'KARTIK'
>>> quit()