problem works except for grader :(

This commit is contained in:
neptunia 2017-03-17 20:19:23 -04:00
parent 2fde6526a8
commit 83ac8f5fab

View file

@ -67,7 +67,7 @@ def get_problem(random):
e = 65537
phi = (p-1)*(q-1)
d = modinv(e, phi)
cut = len(bin(d).strip('0b').strip('L'))//2
cut = len(bin(d).strip('0b').strip('L'))//2 - 2
given = bin(d).strip('0b').strip('L')[cut:]
deez = hex(int(given,2)).zfill(len(given)/4)
salt = random.choice("!?.")