Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson7_5
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
9718e75b
authored
Oct 21, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
d223b699
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
0.py
i.py
0.py
0 → 100644
View file @
9718e75b
th
=
{
'QQ'
:
1
,
'AA'
:
2
,
'cc'
:
4
,
'dd'
:
1
}
th
[
'QQ'
]
=
5
print
(
th
)
\ No newline at end of file
i.py
0 → 100644
View file @
9718e75b
import
random
j
=
""
#定义的空字符
m
=
input
(
"你要加密的内容是什么"
)
#密文
s
=
"234JHTRFeryujhf我们理解"
#私钥
k
=
"##$
%*
*"
#二次加密的字符
for
i
in
m
:
str1
=
i
#密文里的每一个字
str2
=
random
.
choice
(
s
)
#私钥里的随机字符
str3
=
random
.
choice
(
s
)
#私钥里的随机字符
r
=
str1
+
str2
+
str3
j
=
j
+
r
z
=
list
(
j
)
z
.
insert
(
random
.
randint
(
0
,
len
(
z
)),
k
)
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