Commit d434db14 by BellCodeEditor

save project

parent 0c3774d9
Showing with 7 additions and 2 deletions
...@@ -7,9 +7,15 @@ d='' ...@@ -7,9 +7,15 @@ d=''
message = "诺依,周末一起去看动漫展吧!" message = "诺依,周末一起去看动漫展吧!"
key_message="" key_message=""
# 请使用私钥key,对message进行加密 # 请使用私钥key,对message进行加密
noise = "port:@#$%^&"
for i in range(len(message)): for i in range(len(message)):
a=message[i] a=message[i]
b=random.choice(key) b=random.choice(key)
c=random.choice(key) c=random.choice(key)
d+=a+b+c d+=a+b+c
print(d) key_message = key_message+d
\ No newline at end of file
list_message = list(key_message)
list_message.insert(5,noise)
result_messarge = "".join(list_message)
print(result_messarge)
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