Commit 216fd6c8 by BellCodeEditor

save project

parent 8a852aaa
Showing with 8 additions and 3 deletions
...@@ -8,13 +8,18 @@ text="" ...@@ -8,13 +8,18 @@ text=""
# 请使用私钥key,对message进行加密 # 请使用私钥key,对message进行加密
d="asdaffascvsf" d="asdaffascvsf"
key=list(key)
key.insert(2,d)
#print(key)
message=list(message) message=list(message)
message.insert(3,d) message.insert(3,d)
message="".join(message) message="".join(message)
print(message) print(message)
for i in message: for i in message:
a=i a=i
b=random.choice(key) b=random.randint(0,len(key)-1)
c=random.choice(key) c=random.randint(0,len(key)-1)
text+=a+b+c
text+=a+key[b]+key[c]
print(text) print(text)
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