Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson7_6
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
1becd6b7
authored
3 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
be1453f1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
diy4.py
diy4.py
View file @
1becd6b7
...
@@ -3,7 +3,7 @@ import random
...
@@ -3,7 +3,7 @@ import random
# 私钥
# 私钥
key
=
"有啊傻逼傻逼失败鼠标顺便三百 "
key
=
"有啊傻逼傻逼失败鼠标顺便三百 "
# 要加密语句
# 要加密语句
message
=
"都
1是什3么目5的s你7a什么9地!方是#d反
!"
message
=
"都
是什么目的你什么地方是反对非法手段地方豆腐干的风格
!"
b
=
""
b
=
""
# 请使用私钥key,对message进行加密
# 请使用私钥key,对message进行加密
...
@@ -14,10 +14,9 @@ for i in message:
...
@@ -14,10 +14,9 @@ for i in message:
str2
=
random
.
choice
(
key
)
str2
=
random
.
choice
(
key
)
a
=
str
+
str1
+
str2
a
=
str
+
str1
+
str2
b
=
b
+
a
b
=
b
+
a
print
(
b
)
s
=
list
(
b
)
s
=
list
(
b
)
i
=
random
.
randint
(
0
,
len
(
s
))
s
.
insert
(
5
,
p
)
s
.
insert
(
i
,
p
)
d
=
""
.
join
(
s
)
d
=
""
.
join
(
s
)
print
(
d
)
print
(
d
)
...
...
This diff is collapsed.
Click to expand it.
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