Commit ad2bb100 by BellCodeEditor

auto save

parent bace6d54
Showing with 3 additions and 5 deletions
...@@ -4,9 +4,7 @@ import random ...@@ -4,9 +4,7 @@ import random
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句 # 要加密语句
m = "诺依,周末一起去看动漫展吧!" m = "诺依,周末一起去看动漫展吧!"
l = list(m)
l.insert(4,key)
y = "".join()
# 请使用私钥key,对m进行加密 # 请使用私钥key,对m进行加密
a = 0 a = 0
b = 0 b = 0
...@@ -18,5 +16,4 @@ for i in m : ...@@ -18,5 +16,4 @@ for i in m :
b = random.choice(key) b = random.choice(key)
c = a + b + i c = a + b + i
d += c d += c
print(d) print(d)
\ 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