From 98e4209e3968063024380b8934faf4239bd5cdbb Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Tue, 7 Mar 2017 18:33:17 -0600 Subject: [PATCH] Update qrt. --- qrt/grader.py | 2 +- qrt/qrt.py | 2 +- qrt/qrt.pyc | Bin 8304 -> 0 bytes 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 qrt/qrt.pyc 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 02316a0bdc10cdf86b9e4a0650bc07903982a15d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8304 zcmb_hTWlOx89uW&+v~M=oou}8G)a?QR98*yRE46Vq*s@%rPfsIwyE5Pu-O?q>+Hq5 zGj1HZD^;XLm5Pw6qKa0~rwSgpyc87)!3*L6iH9P1qN*woLa2f#K&k|Y@_qk5J3E^l zrxmfiXXeZ~|K}ft)cGj%U=K!(xG5+R>+DqcH z+^B3g-bBB))Tvz5&IFpOPOa{-;OYwd(nbQ(s(aRks^X({mRe>$EnVDk@IJy;Swq7q>dCb9JZT zE+QZ-3tN|52JhsC({y&WI`_;_Bz2|yNK>Iix>IQ)(zL6xwdFKz32eR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