Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

Administrator / lesson7_6

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit 1c4aa8e4 authored a year ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent a786003e c336096l843p219a8873/is795302
Hide whitespace changes
Inline Side-by-side
Showing with 13 additions and 17 deletions
  • diy4.py
diy4.py
View file @ 1c4aa8e4
import random
# 私钥
key ="fhrg过一会太烦人迪恶桑特监控画面我的-053叽41¥%大一噢耶大论*^$4kjgnf"
# 要加密语句
message = "王梓臣无敌讨厌,哼哼"
message = input("请输入:")
key_message=""
# 请使用私钥key,对message进行加密
for i in range(len(message)):
a=message[i]
b=random.choice(key)
c=random.choice(key)
d=a+b+c
key_message=key_message+d
print(key_message)
message1=list(key_message)
message1.insert(random.randint(0,len(message1)),"¥%……&*$%_*^&%(%^")
message2="".join(message1)
print(message2)
\ No newline at end of file
noise="pydiy*&^%$#@!~}+_?}"
for i in message:
str1=i
str2=random.choice(key)
str3=random.choice(key)
text=str1+ str2+str3
key_message=key_message+ text
list_message=list(key_message)
index=random.randint(0,len(key_message))
result_message="".join(list_message)
input(result_message)
\ No newline at end of file
This diff is collapsed. Click to expand it.
  • Write
  • Preview
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