Commit 99e4ede2 by BellCodeEditor

save project

parent 0e3da5f4
Showing with 3 additions and 1 deletions
......@@ -8,6 +8,7 @@ message = "诺依,周末一起去看动漫展吧!"
#使用私钥key,对messaag进行加密
key_massage = ""
str9= random.randint(0,len(message))
wenjian=input("请输入你要加密的密码:")
for i in message:
str1 = i
str2 = random.choice(key)
......@@ -15,6 +16,6 @@ for i in message:
text = str1+str2+str3
key_massage = key_massage + text
miwen=list(key_massage)
miwen.insert(str9,"!@#$%^&*")
miwen.insert(str9,wenjian)
jiami = "".join(miwen)
print(jiami)
\ 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