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
cb552e0b
authored
Mar 24, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
5c6b5df6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
diy4.py
diy4.py
View file @
cb552e0b
...
@@ -3,7 +3,7 @@ m=""
...
@@ -3,7 +3,7 @@ m=""
# 私钥
# 私钥
key
=
"abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
key
=
"abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句
# 要加密语句
message
=
"
明天去大街吃烧烤
"
message
=
"
I have a pen
"
# 请使用私钥key,对message进行加密
# 请使用私钥key,对message进行加密
for
i
in
message
:
for
i
in
message
:
...
@@ -14,10 +14,11 @@ for i in message:
...
@@ -14,10 +14,11 @@ for i in message:
m
=
m
+
u
m
=
m
+
u
p
=
list
(
m
)
p
=
list
(
m
)
p
.
insert
(
5
,
"刘红军考核奖罚看风景$$#^
%
$^
%
$
%
^&*^)"
)
oo
=
random
.
randint
(
0
,
len
(
p
))
p
.
insert
(
oo
,
"刘红军考核奖罚看风景$$#^
%
$^
%
$
%
^&*^)"
)
r
=
""
.
join
(
p
)
r
=
""
.
join
(
p
)
print
(
r
)
print
(
r
)
ss
=
"
明位哈天加换去码替大密制街真h吃使机烧玩d烤哈真
"
ss
=
"
I换a dfh位aac加v是位e太机 密ea是替 用现p编de机gn了用
"
for
i
in
range
(
0
,
len
(
ss
),
3
):
for
i
in
range
(
0
,
len
(
ss
),
3
):
print
(
ss
[
i
],
end
=
""
)
print
(
ss
[
i
],
end
=
""
)
\ No newline at end of file
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