Commit 1f8d5cac by BellCodeEditor

save project

parent 54d646db
Showing with 7 additions and 3 deletions
......@@ -6,10 +6,14 @@ key = "abdefgh使用编程实现位移替换加密,制作密码机关真是太
message = "诺依,周末一起去看动漫展吧!"
#使用私钥key,对messaag进行加密
key_massage = ""
for i in message:
str1 = i
str2 = random.choice(key)
str3 = random.choice(key)
text = str1+str2+str3
print(text,end="")
\ No newline at end of file
key_massage = key_massage + text
miwen=list(key_massage)
miwen.insert(6,"!@#$%^&*")
"".join()
print(miwen)
\ 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