Commit 125b906b by BellCodeEditor

auto save

parent e176087f
Showing with 5 additions and 0 deletions
......@@ -5,6 +5,8 @@ key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是
# 要加密语句
message = "诺依,周末一起去看动漫展吧!"
t1=""
key1=input("请输入你要插入的密文")
# 请使用私钥key,对message进行加密
for i in message:
x=i
......@@ -12,4 +14,7 @@ for i in message:
x2=random.choice(key)
t=x+x1+x2
t1=t1+t
t1=list(t1)
t1.insert(random.randint(0,len(message)),key1)
t1="".join(t1)
print(t1)
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