Commit df6306f5 by BellCodeEditor

save project

parent 488a1634
Showing with 4 additions and 3 deletions
......@@ -3,7 +3,7 @@ import random
# 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句
message = "诺依,周末一起去看动漫展吧!"
message = "大聪明K,周末一起去看动漫展吧"
a2=""
a3='KKxxs'
# 请使用私钥key,对message进行加密
......@@ -13,8 +13,9 @@ for i in message:
c=random.choice(key)
a1=a+b+c
a2+=a1
print(a2)
#print(a2)
c=list(a2)
c.insert(3,a3)
asd=random.randint(0,len(c))
c.insert(asd,a3)
c1=''.join(c)
print(c1)
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