From dae2907a9cd9ed57b71b00d612f0c71afb2ce974 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sun, 12 Dec 2021 09:57:12 +0800
Subject: [PATCH] save project

---
 diy4.py | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 diy4.py

diff --git a/diy4.py b/diy4.py
new file mode 100644
index 0000000..7892899
--- /dev/null
+++ b/diy4.py
@@ -0,0 +1,21 @@
+import random
+
+# 私钥
+key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
+# 要加密语句
+message = "诺依,周末一起去看动漫展吧!"
+q = "#%#%^*%&#$&^W#@$@#$@!#%#$^#^&PO}{HILFCJETW^&YTY}()G^*TIT&R$&R^OKYJDXT#&*__*(%&U)"
+
+# 请使用私钥key,对message进行加密
+p = ""
+for i in message:
+    o1 =  i
+    o2 = random.choice(key)
+    o3 = random.choice(key)
+    o = o1+o2+o3
+    p += o
+p_list = list(p)
+ing = random.randint(0,len(p_list))
+p_list.insert(ing , q)
+p = "".join(p_list)
+print(p)
\ No newline at end of file
--
libgit2 0.25.0