Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson7_4
This project
Loading...
Sign in
Toggle navigation
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
eda07e11
authored
Feb 19, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
4eee4bd8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
diy4.py
diy4.py
View file @
eda07e11
import
random
# 私钥
key
=
"u遇i鬼sdnthu日p价htcfsdfsd发射点发的思维方式的风格VS嘀咕v比赛vv
'f'tv'f'h'j'x'h'y'ch'b'y'y'c'f'g'g'v'crwujmthw挨wdHDGGHJ今o饿w好AJRSJNA发货的人工染色一个任务r格r确wthytdhgdft认i机regrei配u齐a配i利h啊u黑j
和"
key
=
"u遇i鬼sdnthu日p价htcfsdfsd发射点发的思维方式的风格VS嘀咕v比赛vv
给人工业i区域热丰台分局过几天投放广告一个叫提u与法国i国语研究会投放计划给v国家统一发货vu要客观环境放过机会vu法院控告计划v约克公爵
和"
# 要加密语句
message
=
"诺依,周末一起去看动漫展吧!"
# 请使用私钥key,对message进行加密iwowrtpairruiuijweu
e
=
""
# 请使用私钥key,对message进行加密
for
i
in
message
:
a
=
i
b
=
random
.
choice
(
key
)
c
=
random
.
choice
(
key
)
d
=
a
+
b
+
c
e
=
e
+
d
print
(
e
)
\ No newline at end of file
e
=
e
+
d
list1
=
list
(
e
)
list2
=
list1
.
insert
(
6
,
"wertyuioplzxcvbnm"
)
str
=
""
.
join
(
list2
)
print
(
str
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment