Commit 64863221 by BellCodeEditor

auto save

parent 05effdb2
Showing with 25 additions and 0 deletions
message=input("你要加密什么秘语?")
key="vgshxsyushhxsgjsjk" #第一个干扰字符
import random
str5="" #str5用来汇总所有的组合数据
#第一次加密
for i in message:
str1=i
str2=random.choice(key)
str3=random.choice(key)
str4=str1+str2+str3
str5=str5+str4
#print(str5)
#第二次加密
noise="@#¥%……&***(()(@@¥##" #第二次干扰的字符
list1=list(str5) #转化成列表
index=random.randint(0,len(list1)) #确定索引值,index:索引值
list1.insert(index,noise) #插入第二个干扰字符
str6="".join(list1) #把列表转回字符串
print(str6)
import random
a=random.randint(1,9)
print(a)
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