Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
3a4c7b33
Commit
3a4c7b33
authored
Jul 04, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update script
parent
2d42f53f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
script/garble/string_decrypt.py
+2
-2
No files found.
script/garble/string_decrypt.py
View file @
3a4c7b33
...
@@ -16,14 +16,14 @@ def decrypt(path):
...
@@ -16,14 +16,14 @@ def decrypt(path):
with
open
(
path
,
"w"
)
as
f_w
:
with
open
(
path
,
"w"
)
as
f_w
:
for
line
in
lines
:
for
line
in
lines
:
if
"<string"
in
line
and
"</string>"
in
line
:
if
"<string"
in
line
and
"</string>"
in
line
and
"<!"
:
not
in
line
line
=
line
.
replace
(
"</string>"
,
""
)
line
=
line
.
replace
(
"</string>"
,
""
)
str_name
=
line
.
split
(
">"
)[
0
]
+
">"
str_name
=
line
.
split
(
">"
)[
0
]
+
">"
str_value
=
line
.
split
(
">"
)[
1
]
str_value
=
line
.
split
(
">"
)[
1
]
randStr
=
str
(
random
.
randint
(
0
,
1000000
))
+
"#-#"
randStr
=
str
(
random
.
randint
(
0
,
1000000
))
+
"#-#"
line
=
str_name
+
randStr
+
base64
.
b64encode
(
randStr
+
str_value
)
+
"</string>"
line
=
str_name
+
randStr
+
base64
.
b64encode
(
randStr
+
str_value
)
+
"</string>
\n
"
f_w
.
write
(
line
)
f_w
.
write
(
line
)
# print("done\n")
# print("done\n")
...
...
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