Commit a5019db2 by BellCodeEditor

save project

parent 6ea2a04c
Showing with 10 additions and 4 deletions
...@@ -4,14 +4,20 @@ import random ...@@ -4,14 +4,20 @@ import random
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句 # 要加密语句
message = "儿子,周末一起去看你吃屎吧!" message = "儿子,周末一起去看你吃屎吧!"
str5="" text1=""
key2="dfdtrdyt"
for i in message: for i in message:
str1=i str1=i
str2=random.choice(key) str2=random.choice(key)
str3=random.choice(key) str3=random.choice(key)
str4=str1+str2+str3 text=str1+str2+str3
str5=str5+str4 text1=text1+text
print(str5) l=list(text1)
l2.insert(5,key2)
l3="".join(l2)
print(l3)
# 请使用私钥key,对message进行加密 # 请使用私钥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