Commit 9165a44d by BellCodeEditor

save project

parent 8b716aa3
Showing with 5 additions and 4 deletions
...@@ -2,6 +2,7 @@ import random ...@@ -2,6 +2,7 @@ import random
# 私钥 # 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
noise='gdssssssssdajkl3w8023dssddf701bkjxkd'
# 要加密语句 # 要加密语句
message = "诺依,周末一起去看动漫展吧!" message = "诺依,周末一起去看动漫展吧!"
key_message='' key_message=''
...@@ -11,11 +12,11 @@ for i in message: ...@@ -11,11 +12,11 @@ for i in message:
b=random.choice(key) b=random.choice(key)
c=random.choice(key) c=random.choice(key)
key_message=key_message+ a+b+c key_message=key_message+ a+b+c
print(key_message)
l
l=list(key_message)
l.insert(5,noise)
n="".join(l)
print(n)
......
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