Commit 48f5b7ee by BellCodeEditor

save project

parent 3e17ae4c
Showing with 6 additions and 2 deletions
...@@ -6,10 +6,14 @@ key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是 ...@@ -6,10 +6,14 @@ key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是
message = "诺依,周末一起去看动漫展吧!" message = "诺依,周末一起去看动漫展吧!"
key_message="" key_message=""
# 请使用私钥key,对message进行加密 # 请使用私钥key,对message进行加密
abc="54088540885408854087854088540885408854088540881235663e3^&&87*&^&%&%&^$^%*^&(*%#!@#!$#^%&*&(_)_+P{:">:<><:">"L<LKMMBGHCERS$E%^&Y*(&^^&R%#$@~$#%$&**)()(*((*(&*^&%^%$##%&(_)+_+"}:">>:">?>>?>?>?>?>":{::":":{:"":":":":"45511000110110110101010001101101011000101010010110110100101101111010010110101101010110101"
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)
text=a+b+c text=a+b+c
key_message+=text key_message+=text
print(key_message) d=list(key_message)
\ No newline at end of file d.insert(2,abc)
e="".join(d)
print(e)
\ 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