Commit b0a7caa7 by BellCodeEditor

save project

parent 42427553
Showing with 2 additions and 2 deletions
...@@ -7,7 +7,6 @@ message = "诺依,周末一起去看动漫展吧!" ...@@ -7,7 +7,6 @@ message = "诺依,周末一起去看动漫展吧!"
key_message="" key_message=""
key="sdrgdrgrgrg" key="sdrgdrgrgrg"
# 请使用私钥key,对message进行加密 # 请使用私钥key,对message进行加密
list=len(key_message)
for i in message: for i in message:
str=i str=i
...@@ -19,6 +18,7 @@ for i in message: ...@@ -19,6 +18,7 @@ for i in message:
print(key_message) print(key_message)
li_text = list(key_message) li_text = list(key_message)
print(li_text) print(li_text)
li_text.insert(6,key) index=random.randint(0,len(key_message))
li_text.insert(index,key)
ww="".join(li_text) ww="".join(li_text)
print(ww) print(ww)
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