Commit 03e51b81 by BellCodeEditor

save project

parent 5c97048a
Showing with 10 additions and 7 deletions
......@@ -4,14 +4,17 @@ import random
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句
message = "诺依,周末一起去看动漫展吧!"
a=""
# 请使用私钥 key,对message进行加密
a = ""
# 请使用私钥 key,对message进行加
noise = "#^^^%$#%$%&$%^Y#$%^#*$%^&#$^@#$!#$^@#%%$%&%^$#^&#"
for i in message:
text = i
str1=random.choice(key)
str2=random.choice(key)
text = text+str1+str2
a=a+text
print(a)
\ No newline at end of file
a = a + text
a1 = list(a)
a1.insert(5.noise)
b="".join(a1)
print(b)
\ 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