Commit 1cf2a13c by BellCodeEditor

save project

parent 75c69ea6
Showing with 14 additions and 17 deletions
import random
# 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句
message = "诺依,周末一起去看动漫展吧!"
# 请使用私钥key,对message进行加密
ab=" "
for i in message:
str1=i
str2=random.choice(key)
str3=random.choice(key)
text=str1+str2+str3
ab=ab+text
print(ab)
a={'z':2, 'x':1,'c':3}
a1={'z':3, 'x':0.5,'c':3}
a2={'z':2, 'x':1,'c':0.8}
b={'z1':a,'z2':a1,'z3':a2}
q=input('minzi:')
print('*'*30)
if q in b:
q=b[v]
for k,v in b.items():
print(k,v)
print('*'*30)
else:
print('cha')
\ 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