Commit daa7527a by BellCodeEditor

save project

parent 8b2a07f4
Showing with 9 additions and 6 deletions
import random import random
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" Key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
message = "诺依,周末一起去看动漫展吧!" message = "诺依,周末一起去看动漫展吧!"
key_message Key_message="!@#$%^&*^%$@#"
len(key_message) l=""
index=random.randint(0,len(Key_message))
l.indert(index,"port:@#$%^&")
for i in message: for i in message:
a = i a = i
b = random.choice(Key) b = random.choice(Key)
c = random.choice(Key) c = random.choice(Key)
l = l + a + b + c l = l + a + b + c
"message".join(l) len(Key_message)
index=random.randint(0,len(Key_message))
l=list(l)
l.insert(index,"port:@#$%^&")
l="".join(l)
print(l) print(l)
\ 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