Commit 286a8900 by BellCodeEditor

save project

parent 1a702acd
Showing with 7 additions and 5 deletions
......@@ -9,14 +9,15 @@ noise='egfeagreht5rg3r'
# 请使用私钥key,对message进行加密
for i in message:
a=i
b=random.choice(message)
c=random.choice(message)
b=random.choice(key)
c=random.choice(key)
d=a+b+c
key_message=key_message+d
list_message=list(key_message)
list_message.insert(5,noise)
result_message=''.join(list_message)
index=random.randint(0,len(key_message))
key_message.insert(index ,noise)
result_message=''.join(key_message)
print(result_message)
\ 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