Commit 0bd2c2fe by BellCodeEditor

save project

parent 18891748
Showing with 24 additions and 0 deletions
import random
g="port:@#$%^&"
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是阿斯顿法国红酒看来去微软推哦怕自行车v“"
message = input("我是个傻逼:")
k_m=""
# 请使用私钥key,对message进行加密
for i in range(len(message)):
k1=message[i]
k2=random.choice(key)
k3=random.choice(key)
text=k1+k2+k3
k_m=k_m+text
lkm=list(k_m)
lkm.insert(random.randint(0,len(lkm)),g)
km="".join(lkm)
print(km)
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