Commit 89f37747 by BellCodeEditor

save project

parent e3b89795
Showing with 5 additions and 5 deletions
...@@ -7,7 +7,7 @@ message = "诺依,周末一起去看动漫展吧!" ...@@ -7,7 +7,7 @@ message = "诺依,周末一起去看动漫展吧!"
# 请使用私钥key,对message进行加密 # 请使用私钥key,对message进行加密
q='wertyuiop' noise='wertyuiop'
key_message = "" key_message = ""
for i in message: for i in message:
a=i a=i
...@@ -17,7 +17,7 @@ for i in message: ...@@ -17,7 +17,7 @@ for i in message:
key_message=key_message+d key_message=key_message+d
l_message=list(key_message) l_message=list(key_message)
p=random.randint(0,len(key_message)) index=random.randint(0,len(key_message))
l_message.insert(p,q) l_message.insert(index,noise)
w_message=''.join(l_message) result_message=''.join(l_message)
print(w_message) print(result_message)
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