Commit 5b967276 by BellCodeEditor

save project

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