Commit c66f3d13 by BellCodeEditor

auto save

parent e3160ea5
Showing with 18 additions and 0 deletions
import random
key = '基地啊hi回到家欧杰佛评价哦i欸啊别打我' #私钥
message='诺伊今天出去玩' #密码
key_message='' #新的密钥
noise = '!@#¥%……&*()' #干扰字符
for i in message:
str1=i
str2=random.choice(key)
str3 = random.choice(key)
text = str1+str2+str3
key_message = key_message+text
list1 = list(key_message)
index = random.randint(0,len(key_message))
list1.insert(index,noise)
# insert方法:在列表指定位置追加元素第一个参数是追加的位置,第二个参数是追加的元素
no_message = "".join(list1)
print(no_message)
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