Commit 2a44fff9 by BellCodeEditor

save project

parent 3a4255fb
Showing with 2 additions and 1 deletions
......@@ -3,7 +3,7 @@ import random
# 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句
message = int(input(""))
message = input("")
key_message=""
noise="!@$%@#@#&*%%$#%@!#^&Q$@$%^%^^@!#&"
# 请使用私钥key,对message进行加密
......@@ -15,6 +15,7 @@ for i in range(len(message)):
key_message=key_message+d
message1=list(key_message)
index=random.randint(0,len(message1))
message1.insert(random.randint(0,len(message1)),"!@$%@#@#&*%%$#%@!#^&Q$@$%^%^^@!#&")
message2="".join(message1)
......
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