import random key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
message = int(input("输入:"))
password="FBI!Open the door!" pas=list(password) i=0 for i in message: s1=i s2=random.choice(key) s3=random.choice(key) s=s1+s2+s3 print(s)
mess=list(message) num=random.randint(0,len(mess)) mess.insert(num,password) print("",join(mess))