#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
{
Title:CaserCode
Author:naiquan
Type:crypto
Detail:凯撒密码
}
'''
def kaisa(lstr):
    returnStr = ''
    for p in range(127):
        str1 = ''
        for i in lstr:
            temp = chr((ord(i)+p)%127)
            if 32<ord(temp)<127 :
                str1 = str1 + temp
                feel = 1
            else:
                feel = 0
                break
        if feel == 1:
            returnStr = returnStr + str1 + '\n'
    return returnStr

def main(lstr):
    print kaisa(lstr)

main('MSTSEC')

程序来自米斯特安全团队

相关文章:

  • 2021-06-14
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2021-12-11
  • 2021-06-21
  • 2022-12-23
猜你喜欢
  • 2022-01-02
  • 2022-12-23
  • 2021-06-17
  • 2021-07-10
  • 2021-06-27
相关资源
相似解决方案