Commit 48be0c9d by BellCodeEditor

auto save

parent 18891748
Showing with 21 additions and 0 deletions
import random
# 私钥
key = "hfjfh38jbva87t4fj0"
# 要加密语句
message = "诺依,周末一起去看动漫展吧!"
key1=""
# 请使用私钥key,对message进行加密
ganrao="jhgr嗨害嗨dnv546cvbj384jdfh10"
for i in message:
str1=i
str2=random.choice(key)
str3=random.choice(key)
text=str1+str2+str3
key1=key1+text
list_message=list(key1)
d=random.randint(0,len(key1))
list_message.insert(d,ganrao)
c="".join(list_message)
print(c)
\ 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