Commit dd2810dd by BellCodeEditor

save project

parent 18891748
Showing with 21 additions and 0 deletions
import random
o='Herhasaswimminglessonthisafternoon'
# 私钥
key = "GNHNTERSTARYJTBHVERUOQIHGVWIJBVNEGKJSRHNBIGRWGBLGQN GBILEGUETOIBHTNRWBNBTEA!"
# 要加密语句
m=input("What are you doing?")
kep=""
# 请使用私钥key,对message进行加密
for i in m:
a=i
s=random.choice(key)
b=random.choice(key)
c=a+s+b
kep=kep+c
p=random.randint(0,len(kep))
q=list(kep)
q.insert(p,o)
t=''.join(q)
print(t)
\ 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