Commit 608d5ebd by BellCodeEditor

save project

parent d1b25aa5
Showing with 4 additions and 5 deletions
import random import random
# 私钥 # 私钥
key="abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" key="abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
new="" new=""
ganrao="ldehh*&shkhf^3kf`!*&$jdifi004u',993/..,ak" ganrao="ldehh*&shkhf^3kf`!*&$jdifi004u',993/..,ak"
# 要加密语句 # 要加密语句
message = "诺依,周末一起去看动漫展吧!" message = "诺依,周末一起去看动漫展吧!"
new=""
for i in message: for i in message:
st0=i st0=i
st1=random.choice(key) st1=random.choice(key)
st2=random.choice(key) st2=random.choice(key)
st4=st1+st2+st0 st4=st1+st2+st0
new=new+st4 new=new+st4
new=list(new) new=list(new)
new.insert(7,ganrao) inddd=random.randint(0,len(new))
new.insert(inddd,ganrao)
sasei="".join(new) sasei="".join(new)
print(sasei) print(sasei)
\ 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