Commit bbca79e3 by BellCodeEditor

save project

parent 0a8a56b3
Showing with 6 additions and 2 deletions
...@@ -5,6 +5,7 @@ key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是 ...@@ -5,6 +5,7 @@ key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是
# 要加密语句 # 要加密语句
message = "诺依,周末一起去看动漫展吧!" message = "诺依,周末一起去看动漫展吧!"
jfhea="" jfhea=""
jijijij="!@#$%^&&*()54188,14SB$$$$"
# 请使用私钥key,对message进行加密 # 请使用私钥key,对message进行加密
for i in message: for i in message:
ji1=i ji1=i
...@@ -12,4 +13,7 @@ for i in message: ...@@ -12,4 +13,7 @@ for i in message:
ji3=random.choice(key) ji3=random.choice(key)
jkjk=ji1+ji2+ji3 jkjk=ji1+ji2+ji3
jfhea=jfhea+jkjk jfhea=jfhea+jkjk
print(jfhea) list_message=list(jfhea)
\ No newline at end of file list_message.insert(5,jijijij)
jjjjjjjjjjjjjjji="".join(list_message)
print(jjjjjjjjjjjjjjji)
\ 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