Commit c970b7e7 by BellCodeEditor

auto save

parent 9327474e
Showing with 8 additions and 21 deletions
import random q = int(input())
if q<=3:
# 私钥 print(14)
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" elif q>=3 and q<=10:
# 要加密语句 print(14+(q-3)*2.4)
ss="6557efyjfgj" else:
message = "诺依,周末一起去看动漫展吧!" print(30.8+(q-10)*3.6)
key_message="" \ No newline at end of file
# 请使用私钥key,对message进行加密
for i in message:
str1=i
str2=random.choice(key)
str3=random.choice(key)
str4=str1+str2+str3
key_message=key_message+str4
a=list(key_message)
l=random.randint(0,len(key_message))
a.insert(l,ss)
qp="".join(a)
print(qp)
\ 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