Commit 48ba321d by BellCodeEditor

auto save

parent 910b10d6
Showing with 2 additions and 2 deletions
import random import random
# 私钥 # 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句 # 要加密语句
...@@ -14,7 +13,8 @@ for i in range(len(message)): ...@@ -14,7 +13,8 @@ for i in range(len(message)):
key_message=key_message+d key_message=key_message+d
M1=list(key_message) M1=list(key_message)
N="$$#%^&&^)**()_" N="$$#%^&&^)**()_"
M1.insert(3,N) L=random.randint(0,len(key_message))
M1.insert(L,N)
M2="".join(M1) M2="".join(M1)
print(M2) print(M2)
......
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