Commit b2f91403 by BellCodeEditor

save project

parent 18891748
Showing with 27 additions and 0 deletions
import random
# 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句
message = input("怪物,你想加密什么")
# 请使用私钥key,对mes
text=""
for i in message:
tr0=random.choice(key)
tr1=random.choice(key)
text=text+i+tr0+tr1
a="kxyjr0828"
text=list(text)
index=random.randint(0,len(text))
text.insert(index,a)
text="".join(text)
print(text)
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