Commit 2ae2266c by BellCodeEditor

auto save

parent 51cb788b
Showing with 3 additions and 4 deletions
import random import random
# 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
o=input("你要加密什么语句?")# 要加密语句 o=input("你要加密什么语句?")
message = o message = o
Curry = "" Curry = ""
for i in message: for i in message:
...@@ -16,5 +15,4 @@ Stephen = list(Curry) ...@@ -16,5 +15,4 @@ Stephen = list(Curry)
Pool = random.randint(0,len(Curry)) Pool = random.randint(0,len(Curry))
Stephen.insert(Pool,a) Stephen.insert(Pool,a)
klay = "".join(Stephen) klay = "".join(Stephen)
print("二级加密语句为:" + klay)# 请使用私钥key,对message进行加密 print("二级加密语句为:" + klay)
\ 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