Commit 474ef7e9 by BellCodeEditor

save project

parent d223b699
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)
listmessage.insert(5, "a.s.c.z.s.d.a.s.d.s.a.s.d.w.a.s.d.a")
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