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
34b410ec
authored
Dec 04, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
d6d531c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
13 deletions
diy4.py
虽然他很害怕送死婆家娘家公司的和南非.py
diy4.py
View file @
34b410ec
import
random
import
random
key
=
"月黑春万两床举红窗门山水画眉美如入飞两床美如入"
# 私钥
message
=
"远上寒山石径斜,白云深处有人家"
key
=
"abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
key_message
=
""
# 要加密语句
noise
=
"反对过水平高哈路啊复古拉安宫不拉噶勒老本行我看过无尽西法桑配合"
message
=
"诺依,周末一起去看动漫展吧!"
for
i
in
message
:
str1
=
i
# 请使用私钥key,对message进行加密
str2
=
random
.
choice
(
key
)
str3
=
random
.
choice
(
key
)
str4
=
random
.
choice
(
key
)
text
=
str2
+
str1
+
str3
+
str4
key_message
=
key_message
+
text
list_message
=
list
(
key_message
)
list_message
.
insert
(
6
,
noise
)
result_message
=
""
.
join
(
list_message
)
print
(
result_message
)
\ No newline at end of file
虽然他很害怕送死婆家娘家公司的和南非.py
View file @
34b410ec
text
=
"我,是一颗小行星,你看见了我,跌入了星河"
text
=
"我,是一颗小行星,你看见了我,跌入了星河"
text
=
"我,是一颗小行星,你看见了我,跌入了星河"
text
=
"我,是一颗小行星,你看见了我,跌入了星河"
li_text
=
list
(
text
)
li_text
=
list
(
text
)
print
(
li_text
)
text
=
"我,是一颗小行星,你看见了我,跌入了星河"
li_text
=
list
(
text
)
print
(
li_text
)
print
(
li_text
)
\ 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