Commit 3cb73aa8 by BellCodeEditor

save project

parent 1c197d62
Showing with 16 additions and 19 deletions
import random import random
key="xhyiujhljlkp;ikpkvg"
# 私钥 message=input("请输入")
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" key_message=""
# 要加密语句 noise="♂☹☺☚☑㏘卐"
message = "诺依,周末一起去看动漫展吧!" for i in message:
key_message="" str1=i
# 请使用私钥key,对message进行加密 str2=random.choice(key)
for i in range(len(message)): str3=random.choice(key)
a=message[i] text=str1+str2+str3
b=random.choice(key) key_message=key_message+text
c=random.choice(key) list_message=list(key_message)
d=a+b+c a=random.randint(0,len(key_message))
key_message=key_message+d list_message.insert(a,noise)
print(key_message) b="".join(list_message)
message1=list(key_message) print(b)
message1.insert(random.randint(0,len(message1)),"¥%……&*$%_*^&%(%^") \ No newline at end of file
message2="".join(message1)
print(message2)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment