Commit dd574483 by BellCodeEditor

auto save

parent d223b699
Showing with 21 additions and 0 deletions
import random
noise=("#$%^^**&^%$@@#$^^%$#$@!@#$")
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句
a=input("你有什么秘密")
now=" "
for i in a:
#print(i)
s1=i
s2=random.choice((key))
s3=random.choice((key))
sth=s1+s2+s3
now=now+sth
print(now)
sb=list(now)
index=random.randint(0,len(sb))
sb.insert(index,noise)
bs="".join(sb)
print(bs)
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