Commit 5bf42d78 by BellCodeEditor

auto save

parent 9d8b53e8
Showing with 8 additions and 22 deletions
import random asdf = input("输入天气情况:")
asdf = "hao"
if asdf == "hao":
print("步行")
else:
print("妈妈开车送我上学")
# 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句
message = input("请输入:")
key_message=""
a="fhbfguisgyfiufdfyfbfuhguhiyfifdhyhggirjhyeuiy7u947gt98ghugbhujhthyujijghgfgyr"
for i in message:
str1=i
str2=random.choice(key)
str3=random.choice(key)
test=str1+str2+str3
key_message+=test
list_message=list(key_message)
index=random.randint(0,len(key_message))
list_message.insert(index,a)
result_message="".join(list_message)
print(result_message)
\ 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