# coding=utf-8
import pyperclip
LETTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
def main():
myMessage = """I have a dream,the dream is rooted in Chinese dream,I am proud of my country,
one of the great nation in the world.I believe that we can live a happy life which our ancestors presued
for a long time"""
mykey = "ASIMOV"
mode = raw_input("please choose the mode 1(encrypt) or 0(decrypt):")
if mode == 1:
mymode = "encrypt"
else:
mymode ="decrypt"
if mymode == "encrypt":
translated = encryptMessage(mykey,myMessage)
elif mymode =="decrypt":
translated = decryptMessage(mykey,myMessage)
print('%sed message:'%(mymode.title()))
print(translated)
pyperclip.copy(translated)
print()
print('the message has been coiped to the clipboard')
def encryptMessage(key,message):
ret
维吉尼亚加密解密
最新推荐文章于 2022-10-08 17:15:46 发布