Commit 281376cc by BellCodeEditor

save project

parent ccd95c44
Showing with 8 additions and 7 deletions
......@@ -8,13 +8,13 @@ key_message=""
noise="%$#%$^%&&%&>></*-"
# 请使用私钥key,对message进行加密
for i in range(len(message)):
a=message[i]
b=random.choice(key)
c=random.choice(key)
d=a+b+c
str1=i
str2=random.choice(key)
str3=random.choice(key)
text=str1+str2+str3
key_message=key_message+d
list_message=list(key_message)
index = random.randint.(0,len(key_message))
list_message = list(key_message)
index = random.randint(0,len(key_message))
list_message.insert(index,noise)
message="".join(message)
message = "".join(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