Commit 5838d096 by BellCodeEditor

save project

parent 18891748
Showing with 22 additions and 0 deletions
import random
# 私钥
key = "xdfcghbjnkdfhgsjevjhrksflvhsjfilk"
# 要加密语句
message = input("你不要输入的冥文是?")
noise="%&$%&@#%^&*()"
d=""
# 请使用私钥key,对message进行加密
for i in range(len(message)):
a=message[i]
b=random.choice(key)
c=random.choice(key)
key=a+b+c
d=d+key
e=list(d)
index=random.randint(0,len(d))
e.insert(index,noise)
f="".join(e)
print(f)
\ 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