Commit 22f380c3 by BellCodeEditor

save project

parent 18891748
Showing with 46 additions and 0 deletions
import random
ttk = ""
# 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句
message = input('')
# 请使用私钥key,对message进行加密
for i in message:
l = i
a = random.choice(key)
d = random.choice(key)
ttk = ttk +i+ a + d
noise = 'adsaasaga'
q = random.randint(1,len(key))
ttk = list(ttk)
ttk.insert(q,noise)
ttk= ''.join(ttk)
print(ttk)
print("诺a使依,是,port:@#&*^%周g密末哈!一e现起真制去c使看加太动太玩漫编,展d现吧哈了!机作")
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