Commit 5e15ce75 by BellCodeEditor

save project

parent f5488204
Showing with 12 additions and 7 deletions
import random
# 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句
......@@ -21,7 +14,18 @@ for i in range(len(message)):
d=a+b+c
key_message=key_message+d
print(key_message)
#加密后的语句——列表的形式
message1=list(key_message)
#随机插入乱码
message1.insert(random.randint(0,len(message1)),"¥%……&*$%_*^&%(%^")
#将加密后的语句与乱码连接
message2="".join(message1)
print(message2)
\ 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