From c2a82ba628ba589897991f5aee7827e9d5de3014 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Thu, 7 Oct 2021 14:28:05 +0800 Subject: [PATCH] save project --- 1.py | 0 diy4.py | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 1.py create mode 100644 diy4.py diff --git a/1.py b/1.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/1.py diff --git a/diy4.py b/diy4.py new file mode 100644 index 0000000..17f4388 --- /dev/null +++ b/diy4.py @@ -0,0 +1,22 @@ +import random +z='大家氨茶碱视觉冲击实地考察逆战电脑城错错错错错大长腿贴吧回复数学基础iuxnzizomc.z从分内事来了女IE一IE偶句我耦合的几亿一一裂缝o-了健康路面积和规划' +# 私钥 +key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" +# 要加密语句 +message = "诺依,周末一起去看动漫展吧!" +q='' +# 请使用私钥key,对message进行加密 +for i in range(len(message)): + a=message[i] + b=random.choice(key) + c=random.choice(key) + q=q+a+b+c + +w=list(q) + + +f=random.randint(0,len(q)) +w.insert(f,z) + +s=z.join(w) +print(s) \ No newline at end of file -- libgit2 0.25.0