Commit 1e32cafa by BellCodeEditor

save project

parent fcd73233
Showing with 3 additions and 2 deletions
...@@ -4,7 +4,7 @@ key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是 ...@@ -4,7 +4,7 @@ key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是
# 要加密语句 # 要加密语句
message = "诺依,周末一起去看动漫展吧!" message = "诺依,周末一起去看动漫展吧!"
hm_jh="" hm_jh=""
f="@`~~!@#$%^&*()h,./`!@#$%^&*()" w="@`~~!@#$%^&*()h,./`!@#$%^&*()"
# 请使用私钥key,对message进行加密 # 请使用私钥key,对message进行加密
for i in message: for i in message:
y=i y=i
...@@ -13,6 +13,6 @@ for i in message: ...@@ -13,6 +13,6 @@ for i in message:
t=y+u+f t=y+u+f
hm_jh=hm_jh+t hm_jh=hm_jh+t
hm_jh=list(hm_jh) hm_jh=list(hm_jh)
hm_jh.insert(4,f) hm_jh.insert(4,w)
a="".join(hm_jh) a="".join(hm_jh)
print(a) print(a)
\ No newline at end of file
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