Commit 326f3fdc by BellCodeEditor

save project

parent 18891748
Showing with 22 additions and 0 deletions
import random
# 私钥
k = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句
m = input("请输入")
k_m=''
h="jkhj;oejhpphoj"
for i in m:
s=i
b=random.choice(k)
w=random.choice(k)
o=s+b+w
k_m=k_m+o
list_m=list(k_m)
t=random.randint(0,len(k_m))
list_m.insert(t,h)
r_m="".join(list_m)
print(r_m)
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