Commit 9b99a877 by BellCodeEditor

save project

parent b18ad0c3
Showing with 4 additions and 2 deletions
import random import random
# 私钥 # 私钥
message = "诺依,周末一起去看动漫展吧!" message = ""
message =input("请输入要加密的语句:")
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句 # 要加密语句
gan = "鬼地方个好fwfweew人和耳环是否违sds规为任何岗位sq" gan = "鬼地方个好fwfweew人和耳环是否违sds规为任何岗位sq"
...@@ -14,7 +15,8 @@ for i in message: ...@@ -14,7 +15,8 @@ for i in message:
a+=t a+=t
a2 = list(a) a2 = list(a)
a2 .insert(5,gan) u = random.randint(0,len(a))
a2.insert(u,gan)
b2 = "".join(a2) b2 = "".join(a2)
print(b2) print(b2)
......
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