首页 > 代码库 > 【python密码学编程】5.反转加密法

【python密码学编程】5.反转加密法

1 #Reverse Cipher
2 message = there can keep a secret,if two of them are dead.
3 translated = ‘‘
4 i = len(message)-1
5 while i >= 0:
6     translated = translated + message[i]
7     i = i-1
8 print  translated
>>>C:\Python27\python.exe E:/Python/密码学编程/5.py
.daed era meht fo owt fi,terces a peek nac ereht

Process finished with exit code 0

 

【python密码学编程】5.反转加密法