Commit 34840e32 by BellCodeEditor

save project

parent d6c0b4f8
Showing with 7 additions and 7 deletions
...@@ -6,16 +6,15 @@ key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是 ...@@ -6,16 +6,15 @@ key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是
message = "诺依,周末一起去看动漫展吧!" message = "诺依,周末一起去看动漫展吧!"
key_message="" key_message=""
# 请使用私钥key,对message进行加密 # 请使用私钥key,对message进行加密
noice="hsgrfiugyiugtuhygftuyreghyuynhgctiuyngoivtgoiuysbgnoingdisgdfsiuovtngv"
for i in message: for i in message:
abc1=i abc1=i
abc2=random.choice(key) abc2=random.choice(key)
abc3=random.choice(key) abc3=random.choice(key)
abcd=abc1+abc2+abc3 abcd=abc1+abc2+abc3
key_message=key_message+abcd key_message=key_message+abcd
print(key_message)
list.message=list.key_message
list.message=insert(5,noice)
result.messag="".join(list.message)
print(key_message) print(key_message)
\ 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