Commit 36c67c2e by BellCodeEditor

save project

parent 9a3581ef
Showing with 7 additions and 3 deletions
...@@ -2,7 +2,7 @@ import random ...@@ -2,7 +2,7 @@ import random
# 私钥 # 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
m="gdskvahzncdhbshbchdsbhchKBKSHvhjszgbsH CHSBhcBSBygk'b'v'ha# 要加密语句 # 要加密语句
message = "tony,贝贝请你看电影" message = "tony,贝贝请你看电影"
# 请使用私钥key,对message进行加密 # 请使用私钥key,对message进行加密
...@@ -10,8 +10,12 @@ text="" ...@@ -10,8 +10,12 @@ text=""
for i in message: for i in message:
a=i a=i
q=random.choice(key) q=random.choice(key)
w=random.choice(key) w=random.choice()
text=text+a+q+w text=text+a+q+w
print(text) r="dhscbcaewkUCNIUW"
i=list(test)
i.insert(6,r)
i="".join(i)
print(i)
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