Commit 6ee2c838 by BellCodeEditor

auto save

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