Commit 6ee2c838 by BellCodeEditor

auto save

parent 3e6ed3fa
Showing with 7 additions and 7 deletions
......@@ -3,16 +3,16 @@ e=''
# 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句
message = "诺依,周末一起去看动漫展吧!"
message = input('What will you print ?')
sb='hrejhvfkvfdbjmhbgdsbhkj'
# 请使用私钥key,对message进行加密
s='bvfdhjmvbfdsnjhvfbfdskvjfdbvkjfdvkfdsjh'
for i in message:
a=i
b=random.choice(key)
c=random.choice(key)
d=a+b+c
e=e+d
l=list(e)
l.insert(3,s)
saghdfsghvfcd=''.join(l)
print(saghdfsghvfcd)
\ No newline at end of file
dsb=list(e)
dsb.insert(random.randint(0,len(dsb)),sb)
dddsb=''.join(dsb)
print(dddsb)
\ 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