Commit bfa0b234 by BellCodeEditor

save project

parent abf17979
Showing with 5 additions and 3 deletions
......@@ -5,15 +5,17 @@ key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是
# 要加密语句
message = "诺依,周末一起去看动漫展吧!"
str_ans=""
noise="hdkjhtgry9gtoiuergt"
for i in message:
stur1=i
stur2=random.choice(key)
stur3=random.choice(key)
stur4=stur1+stur2+stur3
str_ans=str_ans+stur4
print(str_ans)
list_message=list(str_ans)
list_message.insert(5,noise)
qwer="".join(list_message)
print(qwer)
# 请使用私钥key,对message进行加密
......
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