Commit e2066924 by BellCodeEditor

save project

parent 271c33f0
Showing with 4 additions and 3 deletions
import random import random
# 私钥 # 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" key = "哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈"
# 要加密语句 # 要加密语句
message = "诺依,周末一起去看动漫展吧!" message = "哈哈哈哈哈刀哈哈哈哈哈"
m="" m=""
# 请使用私钥key,对message进行加密 # 请使用私钥key,对message进行加密
for i in range(len(message)): for i in range(len(message)):
...@@ -14,6 +14,6 @@ for i in range(len(message)): ...@@ -14,6 +14,6 @@ for i in range(len(message)):
m=m+d m=m+d
print(m) print(m)
p=list(m) p=list(m)
p.insert(random.randint(0,len(p)),"$#&*%&%^$@#@%#&*") p.insert(random.randint(0,len(p)),"哈哈哈哈哈哈哈哈哈哈")
j="".join(p) j="".join(p)
print(j) print(j)
\ 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