Commit cf125d96 by BellCodeEditor

save project

parent f437aa9d
Showing with 6 additions and 6 deletions
import random import random
std=' ' std=' '
s=' ' s=' '
# 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句 lm="ysgdgyxmkestrdjdfd聚会夫妇和他仿佛摇摇头同步☀体会黑发人7☀图h'f'h'f'y"
message = "诺依,周末一起去看动漫展吧!" message = "诺依,周末一起去看动漫展吧!"
# 请使用私钥key,对message进行加密
for i in message: for i in message:
hhh = i hhh = i
hhhh = random.choice(key) hhhh = random.choice(key)
hh = random.choice(key) hh = random.choice(key)
std=hhh+hhhh+hh std=hhh+hhhh+hh
s=s+std s=s+std
print(s) lb=list(s)
\ No newline at end of file lb2=lb.insert(3,lm)
s1="".join(lb2)
print(s1)
\ 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