Commit 7c0d1ccb by BellCodeEditor

auto save

parent 1c197d62
Showing with 10 additions and 10 deletions
import random
# 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句
......@@ -9,11 +8,12 @@ key_message=""
for i in range(len(message)):
a=message[i]
b=random.choice(key)
c=random.choice(key)
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
c=random.choice(key)
key_message=key_message+a+b+c
print( key_message)
o="asdfghjklqwertyuiopzxcvbnm"
l=list(key_message)
l=key_message
p=l.insert(5,"asdfghjklqwertyuiopzxcvbnm")
"str".join(p)
\ 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