Commit 10d47581 by BellCodeEditor

save project

parent 760a8574
Showing with 12 additions and 17 deletions
import random import random
# 私钥 key =""
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" message =input("输入:")
# 要加密语句 key_message = ""
message = "诺依,周末一起去看动漫展吧!" noise = "uthfiudhfncdshfdsiufhdsihsdiujfhwkeshlkfshdkfhekfdhwikjdshkrdhskdhgkjfdshvcvkvfvkfdmrmdsfshj"
key_message="" for i in message:
# 请使用私钥key,对message进行加密 a = i
for i in range(len(message)): b = random.choice(key)
a=message[i] c = random.choice(key)
b=random.choice(key)
c=random.choice(key) list_message=list()
d=a+b+c print()
key_message=key_message+d \ No newline at end of file
message1=list(key_message)
message1.insert(random.randint(0,len(message1)),"jfdgdgkjvlsfdlskjf")
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