Commit 2959c910 by BellCodeEditor

auto save

parent 18891748
Showing with 21 additions and 0 deletions
import random
# 私钥
key = "abcdefghijklmnopqrstuvwxyz "
# 要加密语句
message = "I Hate you"
newmessage = ""
# 请使用私钥key,对message进行加密
for i in message:
a = i
b = random.choice(key)
c = random.choice(key)
d = a + b + c
newmessage = newmessage + d
listmessage = list(newmessage)
random = random.randint(0,len(newmessage))
listmessage.insert(random, "you are good")
finalmessage = "".join(listmessage)
print(finalmessage)
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