Commit 0792d622 by BellCodeEditor

save project

parent bb04e1d9
Showing with 4 additions and 2 deletions
...@@ -4,7 +4,7 @@ key_message="" ...@@ -4,7 +4,7 @@ key_message=""
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句 # 要加密语句
message="诺依去看周末站吧" message="诺依去看周末站吧"
noise="gqwyhudgfuyt" noise="gqwyhudg凤凰网个"
for i in message: for i in message:
str1=i str1=i
str2=random.choice(key) str2=random.choice(key)
...@@ -12,7 +12,9 @@ for i in message: ...@@ -12,7 +12,9 @@ for i in message:
text=str1+str2+str3 text=str1+str2+str3
key_message=key_message+text key_message=key_message+text
list1=list(key_message) list1=list(key_message)
list1.insert(5,noise) list1.insert(random.randint(0,len(key_message)),noise)
list1.insert(random.randint(0,len(key_message)),"adgju覆盖IE㝉")
list1.insert(random.randint(0,len(key_message)),"dshfg我回家看到我国")
a="".join(list1) a="".join(list1)
print(a) print(a)
......
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