Commit f7ad564e by BellCodeEditor

save project

parent 25d16ec5
Showing with 8 additions and 6 deletions
......@@ -8,14 +8,15 @@ key_message=""
# 请使用私钥key,对message进行加密
noise="gkgigikhyg"
for i in range(len(message)):
a=message[i]
b=random.choice(key)
c=random.choice(key)
d=a+b+c
str1=1
str2=random.choice(key)
str3=random.choice(key)
key_message=key_message+d
list_message=list(key_message)
print(key_message)
list_message.insert(5,noise)
index=random.random(key)
list_message.insert(index,noise)
result_message=""join(list_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