Commit 9016f1ee by BellCodeEditor

save project

parent 9b5cec79
Showing with 6 additions and 3 deletions
import random import random
m="y1q73u7ru8jf884j88y9dj8fju77tj749ufu859i8t"
# 私钥 # 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句 # 要加密语句
...@@ -12,4 +12,7 @@ for i in message: ...@@ -12,4 +12,7 @@ for i in message:
e=random.choice(key) e=random.choice(key)
p=q+w+e p=q+w+e
k=k+p k=k+p
print(k) x=list(k)
\ No newline at end of file x.insert(5,m)
_0="".join(x)
print(_0)
\ 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