diff --git a/qrt/grader.py b/qrt/grader.py index 0c8728b..0ff92c3 100644 --- a/qrt/grader.py +++ b/qrt/grader.py @@ -305,7 +305,7 @@ def generate_image(string, debug=False): draw_triangle(im, points, cell, size) return im -FLAG = "are_triangles_more_secure_than_squares?_%s}" +FLAG = "are_triangles_more_secure_than_squares?_%s" def get_salt(random): salt = "".join([random.choice("0123456789abcdef") for i in range(8)]) diff --git a/qrt/qrt.py b/qrt/qrt.py index d72640e..4175d36 100644 --- a/qrt/qrt.py +++ b/qrt/qrt.py @@ -36,7 +36,7 @@ def getspace(size): def generate(string, debug=False): size = 0 binstring = bin(int(string.encode("hex"), 16)).strip("0b") - while size < 2 or getspace(size + 1) < len(binstring): + while size < 3 or getspace(size + 1) - 8 < len(binstring): size += 1 n = getspace(size) # print size, len(binstring) diff --git a/qrt/qrt.pyc b/qrt/qrt.pyc deleted file mode 100644 index 02316a0..0000000 Binary files a/qrt/qrt.pyc and /dev/null differ