Commit 300a4c11 by BellCodeEditor

save project

parent 18891748
Showing with 21 additions and 0 deletions
import random
d=""
# 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句
message = "诺依,周末一起去看动漫展吧!"
z="oeirhoiesi8ugugilgyouihupeoisxhupesoihhueoijoisj;oheroeiunhexlinht45ux0iewpcx34jcphed9n84reideosjeriueujo9[weu9ewoicneicmpecprecp4r[[vc0rew90[juepwxrcvprepemdzpxewopoire,coicoifxicmrpocotcfoc;olkfmc;goifoigfdlkflkgfclkgtoitf;kvgiofoigfkivo;oflkdroifjvmoicmfricvoimcroicvoirdcoirfoicoirmcoioifrijotmpcoijmrfoivcjmoijrtoicimrjferjccrojvgimodmfpedsoijifd idojosidusoii865r7it76tgiyho8reuyciedfyu7i3yu3d3y232877ewd98987423hfrd9dpq9[;e[r;gt[vr;gt[;t[;[r;b[;tr[;tr[]/g]];t][/;]7/;y];iuy/q[WPSLBR[P4';WETY['R;[P/';';E[P/TR;ERT[;REE[E';/R[';[';EW';L['E[;[AAAAAAPLF]]]]]]]]]]]]]]]]]]]]"
for i in message:
# 请使用私钥key,对message进行加密
q=i
w=random.choice(key)
s=random.choice(key)
a=q+w+s
d+=a
f=list(d)
f.insert(7,z)
c="".join(f)
print(c)
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