Commit 00274fdb by BellCodeEditor

save project

parent 1c197d62
Showing with 3 additions and 4 deletions
......@@ -8,12 +8,12 @@ key_message=""
# 请使用私钥key,对message进行加密
for i in range(len(message)):
a=message[i]
b=random.choice(key)
b=random.choice(key)#从私钥key中随即取出字符
c=random.choice(key)
d=a+b+c
d=a+b+c #将去出来的字符元素进行拼接
key_message=key_message+d
print(key_message)
message1=list(key_message)
message1.insert(random.randint(0,len(message1)),"¥%……&*$%_*^&%(%^")
message2="".join(message1)
print(message2)
\ No newline at end of file
print(message2)
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