Commit fe4cfaa9 by BellCodeEditor

save project

parent e87390f3
Showing with 6 additions and 6 deletions
......@@ -3,7 +3,7 @@ import random
# 私钥
key = input("请输入乱码:")
# 要加密语句
message = "诺依,周末一起去看动漫展吧!"
message = input("请输入要加密的语句:")
key_message=""
# 请使用私钥key,对message进行加密
for i in range(len(message)):
......@@ -13,7 +13,7 @@ for i in range(len(message)):
d=a+b+c
key_message=key_message+d
print(key_message)
message=list(message)
message.insert(5,"port%#^&$&&%&**%%((&^%#))")
message1="".join(message)
print(message1)
\ No newline at end of file
str1=list(key_message)
str1.insert(random.randint(0,len(str1)),"port%#^&$&&%&**%%((&^%#))")
str1="".join(str1)
print(str1)
\ 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