Commit 5d87ef52 by BellCodeEditor

save project

parent 6bb96bb1
Showing with 7 additions and 2 deletions
...@@ -4,6 +4,7 @@ import random ...@@ -4,6 +4,7 @@ import random
key = "只因你太美,鸡你太美,我是一只大狗熊,SB,250,杜子腾" key = "只因你太美,鸡你太美,我是一只大狗熊,SB,250,杜子腾"
# 要加密语句 # 要加密语句
m = "诺依,周末一起去看动漫展吧!" m = "诺依,周末一起去看动漫展吧!"
mm = "dhsgbsbcys@#$^&^(^...^)"
km="" km=""
# 请使用私钥key,对message进行加密 # 请使用私钥key,对message进行加密
for i in m: for i in m:
...@@ -11,4 +12,8 @@ for i in m: ...@@ -11,4 +12,8 @@ for i in m:
str1 = random.choice(key) str1 = random.choice(key)
text = str+str1 text = str+str1
km = km+text km = km+text
print(km) a = list(km)
\ No newline at end of file i = random.randint(0,len(text))
a.insert(i,mm)
km="".join(a)
print(a)
\ 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