From 74fc5ebc3ee41a35e2228a0307c8f3d5b6473c29 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 15 Aug 2020 14:17:57 +0800 Subject: [PATCH] save project --- diy4.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 diy4.py diff --git a/diy4.py b/diy4.py new file mode 100644 index 0000000..a7cc684 --- /dev/null +++ b/diy4.py @@ -0,0 +1,16 @@ +import random + +# 私钥 +key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" +# 要加密语句 +message = "诺依,周末一起去看动漫展吧!" +a="port:@#$%^&" +list.insert(a) +index = random.randint(0,20) +# 请使用私钥key,对message进行加密 +for i in message: + sey1=i + sey2=random.choice(key) + sey3=random.choice(key) + text=sey1+sey2+sey3 + print(text) \ No newline at end of file -- libgit2 0.25.0