Commit 03554f85 by BellCodeEditor

save project

parent f389876a
Showing with 8 additions and 2 deletions
...@@ -2,14 +2,20 @@ import random ...@@ -2,14 +2,20 @@ import random
# 私钥 # 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句 h="觉得你放技能房间内纷纷就货币当局士兵的巫毒娃娃的把握和"
message = "诺依,周末一起去看动漫展吧!" message = "诺依,周末一起去看动漫展吧!"
scr="" scr=""
sc=""
for i in message: for i in message:
a=random.choice(key) a=random.choice(key)
b=random.choice(key) b=random.choice(key)
scr=scr+i+a+b scr=scr+i+a+b
print(scr) scrs=list(scr)
for i in range(0,len(scrs),4):
d=random.choice(h)
scrs.insert(i*4,d)
sc="".join(scrs)
print(sc)
# 请使用私钥key,对message进行加密 # 请使用私钥key,对message进行加密
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