Commit fe3697ab by BellCodeEditor

save project

parent d223b699
Showing with 22 additions and 0 deletions
import random
# 私钥
key = "qwertyuiop[]asdfghjkl;'zxcvbnm,./?!复合机v回复viuse后v淖尔送到仓库莫斯科才能时间长1234567890"
# 要加密语句
message = "诺依,周末一起去看动漫展吧!"
key_m=""
n="]¥%……&*$%^&*()_+{}:<>?:{}("
# 请使用私钥key,对message进行加密
for i in range(len(message)):
str1=message[i]
str2=random.choice(key)
str3=random.choice(key)
text=str1+str2+str3
key_m+=text
m1=list(key_m)
m1.insert(random.randint(0,len(m1)),n)
m2="".join(m1)
print(m2)
\ No newline at end of file
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