Commit 3a4c7b33 by sikang

update script

parent 2d42f53f
...@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment