Commit dc6e7f13 by BellCodeEditor

auto save

parent bfe34c6b
Showing with 16 additions and 22 deletions
import random
for i in range(1,5):
# 私钥 for k in range(1,5):
noisy="!@@$#@%$#^$%&%^&%$%$&%^$@@!$#%$^$#"
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
key_message=""# 要加密语句 if i!=k :
message = input("你要什么鬼:") print(i,k)
for i in message:
str1=i
str2=random.choice(key)
str3=random.choice(key)
text=str1+str2+str3
key_message=text+key_message
a=random.randint(1,10)
list_message=list(key_message)
list_message.insert(a,noisy)
kby="".join(list_message)
print(kby)
# 请使用私钥key,对message进行加密
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