Commit d7271417 by BellCodeEditor

save project

parent a7408683
Showing with 6 additions and 1 deletions
import random import random
e="" e=""
f="ukeshfyusfhdsuifsaIUfighj,sakf"
# 私钥 # 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句 # 要加密语句
...@@ -10,7 +11,11 @@ for i in message: ...@@ -10,7 +11,11 @@ for i in message:
b=random.choice(key) b=random.choice(key)
c=d+a+b c=d+a+b
e=e+c e=e+c
print(e) g=list(e)
g.insert(2,f)
h="".join(g)
print(h)
# 请使用私钥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