Commit 6894cd71 by BellCodeEditor

save project

parent d223b699
Showing with 20 additions and 0 deletions
import random
# 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!玩54了5vt54rf6tfyv5t76yg67rt6t78r7665654211et1改图天7用途6贴他"
# 要加密语句
message = "诺依,周末一起去看动漫展吧!"
z4=""
# 请使用私钥key,对message进行加密
d="fhs dipgo;rsporthgoegipogutunbo8 ie[0oibupoi e4n]eog j56yu9880-iboy 309in p9uoe4jopepoe bo ijt iutpoitye d"
for i in message:
z1=i
z2=random.choice(key)
z3=random.choice(key)
test=z1+z2+z3
z4+=test
l=list(z4)
l.insert(3,d)
print("".join(l))
\ 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