From 2fde6526a8f2e7316960e42393b8829565e3fc5f Mon Sep 17 00:00:00 2001 From: neptunia Date: Fri, 17 Mar 2017 19:33:03 -0400 Subject: [PATCH] fix parens --- premium-rsa/grader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/premium-rsa/grader.py b/premium-rsa/grader.py index c7be286..e486c5f 100644 --- a/premium-rsa/grader.py +++ b/premium-rsa/grader.py @@ -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'