Commit c1c32e7f by BellCodeEditor

save project

parent e8144963
Showing with 7 additions and 6 deletions
...@@ -8,11 +8,12 @@ key_message="" ...@@ -8,11 +8,12 @@ key_message=""
# 请使用私钥key,对message进行加密 # 请使用私钥key,对message进行加密
for i in message: for i in message:
str1 = i str1 = i
s str2 = random.choice(key)
str3 = random.choice(key)
text = str1+str2+str3
key_message = key_message + text
list_message = list(key_message) list_message = list(key_message)
list_message.insert(5, noise) list_message.insert(5, noise)
resert_message = "".join(list_message) resert_message = "".join(list_message)
print(result_message)tr2 = random.choice(key) print(result_message)
str3 = random.choice(key) \ No newline at end of file
text = str1+str2+str3
key_message = key_message + text
\ 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