Commit eaac2fc4 by BellCodeEditor

auto save

parent 8b267f84
Showing with 5 additions and 1 deletions
...@@ -4,6 +4,7 @@ kk="" ...@@ -4,6 +4,7 @@ kk=""
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句 # 要加密语句
message = "诺依,周末一起去看动漫展吧!" message = "诺依,周末一起去看动漫展吧!"
message1="sdlkjfkslajd"
# 请使用私钥key,对message进行加密 # 请使用私钥key,对message进行加密
for i in message: for i in message:
...@@ -12,5 +13,8 @@ for i in message: ...@@ -12,5 +13,8 @@ for i in message:
a3=random.choice(key) a3=random.choice(key)
a=a1+a2+a3 a=a1+a2+a3
kk=kk+a kk=kk+a
print(kk) tt=list(kk)
tt.insert(4,message1)
pp="".join(tt)
print(pp)
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