Commit 5b967276 by BellCodeEditor

save project

parent 8b9dae08
Showing with 10 additions and 10 deletions
......@@ -3,13 +3,13 @@ import random
# 私钥
L = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句
message = "诺依,周末一起去看动漫展吧!"
key_message=""
yy = "诺依,周末一起去看动漫展吧!"
L1=""
# 请使用私钥key,对message进行加密
for i in :
3=message[i]
21=random.choice(ll)
1=random.choice(l)
d=3+21+1
key_message=key_message+d
print(key_message)
\ No newline at end of file
for i in yy:
r3=yy[i]
r21=random.choice(l)
r1=random.choice(l)
d=r3+r21+r1
L1=L1+d
print(L1)
\ 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