Commit d3ad9212 by BellCodeEditor

save project

parent 2973edfc
Showing with 5 additions and 4 deletions
...@@ -4,11 +4,11 @@ key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是 ...@@ -4,11 +4,11 @@ key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是
# 要加密语句 # 要加密语句
message = "诺依,周末一起去看动漫展吧!" message = "诺依,周末一起去看动漫展吧!"
key_message="" key_message=""
for i in range(len(message)):
for i in message: for a in message:
xxpc1 = i xxpc1 = a
zlyp1 = random.choice(key) zlyp1 = random.choice(key)
zlyp2 = random.choice(key) zlyp2 = random.choice(key)
hycdf = xxpc1+zlyp1+zlyp2 hycdf = xxpc1+zlyp1+zlyp2
key_message += hycdf key_message = key_message+hycdf
print(key_message) print(key_message)
\ 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