problem works except for grader :(
This commit is contained in:
parent
2fde6526a8
commit
83ac8f5fab
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ def get_problem(random):
|
||||||
e = 65537
|
e = 65537
|
||||||
phi = (p-1)*(q-1)
|
phi = (p-1)*(q-1)
|
||||||
d = modinv(e, phi)
|
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:]
|
given = bin(d).strip('0b').strip('L')[cut:]
|
||||||
deez = hex(int(given,2)).zfill(len(given)/4)
|
deez = hex(int(given,2)).zfill(len(given)/4)
|
||||||
salt = random.choice("!?.")
|
salt = random.choice("!?.")
|
||||||
|
|
Loading…
Reference in a new issue