Commit 58461f43 by BellCodeEditor

save project

parent 77bf7cc4
Showing with 6 additions and 1 deletions
......@@ -5,6 +5,7 @@ key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是
# 要加密语句
message = "诺依,周末有起去看 动漫展吧!"
new=""
ganrao="ju65ty^*$#^gfert"
# 请使用私钥key,对message进行加密
for i in message:
str1=i
......@@ -12,5 +13,9 @@ for i in message:
str3=random.choice(key)
text=str1+str2+str3
new=new+text
print(new)
list_new=list(new)
index=random.randint(0,len(new))
list_new.insert(index,ganrao)
result="".join(list_new)
print(result)
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