Commit 9718e75b by BellCodeEditor

auto save

parent d223b699
Showing with 21 additions and 0 deletions
th={'QQ':1,'AA':2,'cc':4,'dd':1}
th['QQ']=5
print(th)
\ No newline at end of file
import random
j="" #定义的空字符
m=input("你要加密的内容是什么") #密文
s="234JHTRFeryujhf我们理解" #私钥
k="##$%**" #二次加密的字符
for i in m:
str1=i #密文里的每一个字
str2=random.choice(s) #私钥里的随机字符
str3=random.choice(s) #私钥里的随机字符
r=str1+str2+str3
j=j+r
z=list(j)
z.insert(random.randint(0,len(z)),k)
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