Commit 08b0a0cd by BellCodeEditor

save project

parent ef2676af
Showing with 7 additions and 2 deletions
...@@ -11,7 +11,12 @@ for i in message: ...@@ -11,7 +11,12 @@ for i in message:
str3=random.choice(key) str3=random.choice(key)
text=str1+str2+str3 text=str1+str2+str3
key_message=key_message+text key_message=key_message+text
print(key_message) asd="asdfghjkl"
# 请使用私钥key,对message进行加密 list_message=list(key_message)
index=random.randint(0,len(list_message))
list_message.insert(index,asd)
result=''.join(list_message)
print(result)
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