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 43f126ed authored 2 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent c0748c3c
Hide whitespace changes
Inline Side-by-side
Showing with 4 additions and 12 deletions
  • diy4.py
diy4.py
View file @ 43f126ed
import random import random
q="" q=""
# 私钥 # 私钥
key = "abcdefgh为加密" key = "abcdefgh使用编程实现位移替换加密"
# 要加密语句 # 要加密语句()
message = input("输入") message = input("输入")
a="xkrbbbbbbbbbbb" a="xkrbbbbbbbbbbb"
# 请使用私钥key,对message进行加密 # 请使用私钥key,对message进行加密
...@@ -17,13 +17,4 @@ w=list(q) ...@@ -17,13 +17,4 @@ w=list(q)
w.insert(random.randint(0,len(w)),a) w.insert(random.randint(0,len(w)),a)
print(w) print(w)
r="".join(w) r="".join(w)
print(r) print(r)
\ 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