Commit 942c92ee by BellCodeEditor

save project

parent d44b8199
Showing with 8 additions and 1 deletions
import random import random
# 私钥 # 私钥
b="@#$%^&"
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句 # 要加密语句
message = "诺依,周末一起去看动漫展吧!" message = "诺依,周末一起去看动漫展吧!"
...@@ -11,4 +12,10 @@ for i in message: ...@@ -11,4 +12,10 @@ for i in message:
w=random.choice(key) w=random.choice(key)
e=i+q+w e=i+q+w
t=t+e t=t+e
print(t)
a=list(t)
c=list(b)
a.insert(random.randint(0,len(message)),b)
print("".join(a))
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