Commit 10791478 by BellCodeEditor

save project

parent ad0a9e13
Showing with 19 additions and 15 deletions
a=input("请输入:")
import random
key="qsxefvthnik,qazedctgbujmol."
message="你没了!菜!"
# 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句
message = input("请输入你要加密的语句:")
key_message=""
# 请使用私钥key,对message进行加密
noise="wwwwdwsx+-3@"
for i in message:
a=i
b=random.choice(key)
c=random.choice(key)
d=a+b+c
key_message+=d
print(key_message)
\ No newline at end of file
r=random.choice(key)
t=random.choice(key)
y=i+r+t
key_message=key_message+y
yyds_message=list(key_message)
yyds_message.insert(random.randint(0,len(yyds_message)),noise)
tm_message="".join(yyds_message)
print(tm_message)
import random
key="信息加密好酷呀!"
str=random.choice(key)
print(str)
\ No newline at end of file
a=input("请输入你的姓名:")
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