Commit fcd73233 by BellCodeEditor

save project

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