Commit 14ce1ce4 by BellCodeEditor

save project

parent 48f5b7ee
Showing with 5 additions and 3 deletions
...@@ -3,10 +3,10 @@ import random ...@@ -3,10 +3,10 @@ import random
# 私钥 # 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句 # 要加密语句
message = "诺依,周末一起去看动漫展吧!" message = input("输入你要加密的句子:")
key_message="" key_message=""
# 请使用私钥key,对message进行加密 # 请使用私钥key,对message进行加密
abc="54088540885408854087854088540885408854088540881235663e3^&&87*&^&%&%&^$^%*^&(*%#!@#!$#^%&*&(_)_+P{:">:<><:">"L<LKMMBGHCERS$E%^&Y*(&^^&R%#$@~$#%$&**)()(*((*(&*^&%^%$##%&(_)+_+"}:">>:">?>>?>?>?>?>":{::":":{:"":":":":"45511000110110110101010001101101011000101010010110110100101101111010010110101101010110101" abc="54088540885408854087854088540888888888888888888888888888888888811111111111111111111111888888888888888888811111111111111111111111111111111111111111111111111111111111SDSFDGWHDGYWGEFHVEGHFVUYWEGCHSDBFHGEYGBFJCBEJHFGEUIGHFJEBFHEUBCFEHGFEGBFYGEUHUEHUDH999999[[[[[[[[[XMBC]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]8FBFBFBFBFFGFGFGFN85408854088540881235663e3^&&87*&^&%&%&^$^%*^&(*%#!@#!$#^%&*&(_)_+P{:"
for i in message: for i in message:
a=i a=i
b=random.choice(key) b=random.choice(key)
...@@ -14,6 +14,7 @@ for i in message: ...@@ -14,6 +14,7 @@ for i in message:
text=a+b+c text=a+b+c
key_message+=text key_message+=text
d=list(key_message) d=list(key_message)
d.insert(2,abc) o=random.randint(0,len(d))
d.insert(o,abc)
e="".join(d) e="".join(d)
print(e) 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