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
37d77469
Commit
37d77469
authored
Jul 04, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
437595aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
script/garble/string_decrypt.py
+8
-7
src/main/res/values/strings.xml
+1
-1
No files found.
script/garble/string_decrypt.py
View file @
37d77469
...
...
@@ -17,13 +17,14 @@ def decrypt(path):
with
open
(
path
,
"w"
)
as
f_w
:
for
line
in
lines
:
if
"<string"
in
line
and
"</string>
\n
"
in
line
and
"<!"
not
in
line
:
line
=
line
.
replace
(
"</string>
\n
"
,
""
)
str_name
=
line
.
split
(
">"
)[
0
]
+
">"
str_value
=
line
.
split
(
">"
)[
1
]
randStr
=
str
(
random
.
randint
(
0
,
1000000
))
+
"#-#"
line
=
str_name
+
randStr
+
base64
.
b64encode
(
randStr
+
str_value
)
+
"</string>
\n
"
if
"*keep*"
in
line
:
line
=
line
.
replace
(
"*keep*"
,
""
)
else
:
line
=
line
.
replace
(
"</string>
\n
"
,
""
)
str_name
=
line
.
split
(
">"
)[
0
]
+
">"
str_value
=
line
.
split
(
">"
)[
1
]
randStr
=
str
(
random
.
randint
(
0
,
1000000
))
+
"#-#"
line
=
str_name
+
randStr
+
base64
.
b64encode
(
randStr
+
str_value
)
+
"</string>
\n
"
f_w
.
write
(
line
)
# print("done\n")
...
...
src/main/res/values/strings.xml
View file @
37d77469
...
...
@@ -21,7 +21,7 @@
<string
name=
"text_completed"
>
Lengkap
</string>
<string
name=
"text_certification2"
>
Bukti
</string>
<string
name=
"text_me"
>
Saya
</string>
<string
name=
"text_can_not_login"
>
Tidak bisa masuk? Klik disini
</string>
<string
name=
"text_can_not_login"
>
*keep*
Tidak bisa masuk? Klik disini
</string>
<string
name=
"loan_duration"
>
Durasi Pinjaman
</string>
...
...
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