fix parens
This commit is contained in:
parent
5ae11d3225
commit
2fde6526a8
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ def get_problem(random):
|
|||
def generate_ciphertext(random):
|
||||
n, e, cut, deez, salt = get_problem(random)
|
||||
encoded = int(("easyctf{%s%s}" % (flag, salt)).encode('hex'),16)
|
||||
ciphertext = 'n: '+hex(n))+'\n'
|
||||
ciphertext = 'n: '+hex(n)+'\n'
|
||||
ciphertext += 'e: '+hex(e)+'\n'
|
||||
ciphertext += 'd: [??? '+str(cut)+' REDACTED BITS ???]'+str(deez)+'\n'
|
||||
ciphertext += 'c: '+hex(pow(encoded, e, n))+'\n'
|
||||
|
|
Loading…
Reference in a new issue