diy4.py
403 Bytes
import random
# 私钥
key = input("你的私钥是什么?")
# 要加密语句
text2 = ""
message = input("你要加密的内容是什么?")
for i in message:
str1 = i
str2 = random.choice(key)
str3 = random.choice(key)
text = str1 + str2 + str3
text2 = text2 + text
str4 = port:lwixir3hr
list(text2)
text2.insert(random.randint(0,len(text2)),"str4")
"".join(text2)
print(text2)