Commit f76f2b28 by BellCodeEditor

save project

parent fc70cadb
Showing with 4 additions and 1 deletions
...@@ -3,7 +3,7 @@ import random ...@@ -3,7 +3,7 @@ import random
# 私钥 # 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句 # 要加密语句
message = "诺依,周末一起去看动漫展吧!" message = "请输入你要加入的语句:"
noise="e358357975" noise="e358357975"
a="" a=""
for i in message: for i in message:
...@@ -12,7 +12,9 @@ for i in message: ...@@ -12,7 +12,9 @@ for i in message:
str3=random.choice(key) str3=random.choice(key)
text=str1+str2+str3 text=str1+str2+str3
a=a+text a=a+text
#二次加密
list_a=list(a) list_a=list(a)
5=random.randint()
list_a.insert(5,noise) list_a.insert(5,noise)
str_a="".join(list_a) str_a="".join(list_a)
print(str_a) print(str_a)
\ 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