Commit 8ee2c4ac by BellCodeEditor

save project

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