Commit 6327bedb by sikang

update

parent 07a025bb
......@@ -6,9 +6,9 @@ import base64
import glob, os
def gen_rand_str():
rand_str = ''.join(random.choices(string.ascii_uppercase + string.ascii_lowercase, k=8))
return rand_str + str(random.randint(0, 1000000))
# def gen_rand_str():
# rand_str = ''.join(random.choices(string.ascii_uppercase + string.ascii_lowercase, k=8))
# return rand_str + str(random.randint(0, 1000000))
def decrypt(path):
# print("processing content: %s..." % path)
......@@ -23,7 +23,7 @@ def decrypt(path):
str_name = line.split(">")[0] + ">"
str = line.split(">")[1]
randStr = gen_rand_str + "*-*"
randStr = str(random.randint(0, 1000000)) + "*-*"
line = str_name + randStr + base64.b64encode(randStr + str) + "</string>"
f_w.write(line)
......
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