Commit 4c1edb3e by BellCodeEditor

save project

parent e6dbe745
Showing with 6 additions and 1 deletions
...@@ -5,6 +5,7 @@ key = "abcdefgh使用编程实现ä½ç§»æ›¿æ¢åŠ å¯†ï¼Œåˆ¶ä½œå¯†ç æœºå…³çœŸæ˜¯å¤ ...@@ -5,6 +5,7 @@ key = "abcdefgh使用编程实现ä½ç§»æ›¿æ¢åŠ å¯†ï¼Œåˆ¶ä½œå¯†ç æœºå…³çœŸæ˜¯å¤
# 要加密语句 # 要加密语句
message = "诺依,周末一起去看动漫展吧!" message = "诺依,周末一起去看动漫展吧!"
str5="" str5=""
noise="!@#$%^&*(_++_)(*&^%$#@!)"
# 请使用私钥key,对message进行加密 # 请使用私钥key,对message进行加密
for i in message : for i in message :
str1=i str1=i
...@@ -12,7 +13,10 @@ for i in message : ...@@ -12,7 +13,10 @@ for i in message :
str3=random.choice(key) str3=random.choice(key)
str4=str1+str2+str3 str4=str1+str2+str3
str5=str5+str4 str5=str5+str4
print(str5) a=list(str5)
a.insert(5,noise)
b="".join(a)
print(b)
......
++ "b/\346\231\232\344\270\212\343\200\202py"
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