Commit 0e3da5f4 by BellCodeEditor

save project

parent 1f8d5cac
Showing with 5 additions and 4 deletions
......@@ -7,6 +7,7 @@ message = "诺依,周末一起去看动漫展吧!"
#使用私钥key,对messaag进行加密
key_massage = ""
str9= random.randint(0,len(message))
for i in message:
str1 = i
str2 = random.choice(key)
......@@ -14,6 +15,6 @@ for i in message:
text = str1+str2+str3
key_massage = key_massage + text
miwen=list(key_massage)
miwen.insert(6,"!@#$%^&*")
"".join()
print(miwen)
\ No newline at end of file
miwen.insert(str9,"!@#$%^&*")
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