Commit 4a5cb54a by BellCodeEditor

save project

parent 42d7d7f9
Showing with 16 additions and 15 deletions
import random import random
# 私钥 key = "abcdefgh"
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" message = "电脑房老羞成怒该板块"
# 要加密语句 key_m=""
message = "诺依,周末一起去看动漫展吧!" noise = "port:@#$%^&"
text = "" text.insert(2,noise)
tianshun = "" #加密过程
# 请使用私钥key,对message进行加密
for i in message: for i in message:
str1 = i
str2 = random.choice(key)
str1=random.choice(key) str3 = random.choice(key)
str2=random.choice(key) text = str1+str2+str3
text=i+str1+str2 key_m=key_m+text
tianshun =tianshun + text print(key_m)
print(tianshun) li_text = list(key_m)
list.insert(2,nflsmldjngikdmnclsdkngkdfnf)
yfjhgh="".join(li_text)
print(yfjhgh)
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