Commit 7fa2bc1d by BellCodeEditor

save project

parent 0316af8e
Showing with 9 additions and 2 deletions
...@@ -5,8 +5,15 @@ key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是 ...@@ -5,8 +5,15 @@ key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是
# 要加密语句 # 要加密语句
m = "诺依,周末一起去看动漫展吧!" m = "诺依,周末一起去看动漫展吧!"
for i in m: for i in m:
f=[i] t1=i
print(f) t2=random.choice(key)
t3=random.choice(key)
q=t1+t2+t3
s=s+q
print(s)
# 请使用私钥key,对message进行加密 # 请使用私钥key,对message进行加密
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