码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2017-06-22 13:24:12      阅读:166      评论:0      收藏:0      [点我收藏+]

标签:ini   translate   proc   加密   cipher   密码   can   div   反转   

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.反转加密法

标签:ini   translate   proc   加密   cipher   密码   can   div   反转   

原文地址:http://www.cnblogs.com/Archimedes/p/7064281.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!