Commit 85f1470a by BellCodeEditor

save project

parent e3160ea5
import random
# 私钥
key = "人民币我喜欢$"
keymessage="port@$%^&^%$#$%^&^%"
# 要加密语句
message = "诺依,周末一起去看动漫展吧!"
key_message=""
# 请使用私钥key,对message进行加密
for i in message:
str1=i
str2=random.choice(key)
str3=random.choice(key)
str4=random.choice(keymessage+key)
str5=random.choice(keymessage+key)
str6=random.choice(keymessage+key)
str7=random.choice(keymessage+key)
str8=random.choice(keymessage+key)
str9=random.choice(keymessage+key)
str10=random.choice(key)
str11=random.choice(key)
text=str1+str2+str3+str4+str5+str6+str7+str8+str9+str10+str11
key_message=key_message+text
print(key_message)
\ 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