Commit 80f9f5eb by BellCodeEditor

auto save

parent 857df1ce
Showing with 9 additions and 5 deletions
......@@ -4,10 +4,13 @@ import random
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句
message = "诺依,周末一起去看动漫展吧!"
key2 = "asidxprot:sdf"
# 请使用私钥key,对message进行加密
key2 = "按设计费 电视剧开放啦减肥啦大姐夫案例"
# 请使用私钥key,对message进行加密\
li_text = list(message)
print(li_text)
li_text.insert(2,key2)
text = "".join(li_text)
li_key2 = list(key2)
for i in range(10):
index = random.randint(0,len(message))
index2 = random.randint(0,len(li_key2))
li_text.insert(index,li_key2[index2])
text = "".join(li_text)
print(text)
\ 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