Commit 2987d448 by BellCodeEditor

save project

parent 9eec895d
Showing with 4 additions and 2 deletions
...@@ -5,9 +5,11 @@ key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是 ...@@ -5,9 +5,11 @@ key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是
# 要加密语句 # 要加密语句
m = "诺依,周末一起去看动漫展吧!" m = "诺依,周末一起去看动漫展吧!"
# 请使用私钥key,对message进行加密 # 请使用私钥key,对message进行加密
d=""
for i in m: for i in m:
q1=i q1=i
q2=random.choice(key) q2=random.choice(key)
q3=random.choice(key) q3=random.choice(key)
h=q1+q2+q3 h=q1+q2+q3
print(h) d=d+h
\ No newline at end of file print(d)
\ 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