Commit fb7f32d1 by BellCodeEditor

save project

parent e3160ea5
Showing with 17 additions and 0 deletions
import random
n=input("输入需要加密的密码")
# 私钥
key =input("你想要的私钥")
fgu=input("想要的乱码")
key_message=""
# 请使用私钥key,对message进行加密
for i in range(len(n)):
a=n[i]
b=random.choice(key)
c=random.choice(key)
d=a+b+c
key_message=key_message+d
m1=list(key_message)
m1.insert(random.randint(0,len(m1)),fgu)
m2="".join(m1)
print(m2)
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