Commit b74d2a43 by BellCodeEditor

auto save

parent d223b699
Showing with 20 additions and 0 deletions
import random
# 私钥
key = "abcdefgh使用编程实现grefgerfggreg位移替换加密,制作密regrtrgersfegrsg码机关真是太ergvbregewfergrg好玩了哈哈!"
# 要加密语句
message = "诺依,周末一起去看动漫展吧!"
tgretger=""
key_message=""
# 请使用私钥key,对message进行加密
for i in range(len(message)):
a=message[i]
b=random.choice(key)
c=random.choice(key)
d=random.choice(key)
e=random.choice(key)
g=random.choice(key)
h=random.choice(key)
f=a+b+c+d+e+g+h
key_message=key_message+f
print(key_message)
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