Mathematics - Brainteasers Part 1
Adrien's Signs
"Adrien's been looking at ways to encrypt his messages with the help of symbols and minus signs. Can you find a way to recover the flag?"
I did not find this one easy. However, I've thought we needed something we learnt through this course and the only thing that fits is the Legendre Symbol. So, for each int in the output we use Legendre Symbol and if it outputs 1 we add it to a string else we add 0. Then we convert the binary string to ASCII.
This will indeed print crypto{????????????????????}. So To get the flag, simply use the output.txt as ciphertext.
Modular Binomials
Rearrange the following equations to get the primes p,q
N = p*q
c1 = (2*p + 3*q)**e1 mod N
c2 = (5*p + 7*q)**e2 mod N
So, I remember doing something like this in a Cyptology course at DTU, but there does exists a much easier solution for factoring large numbers.
This of course only works if the number is in the database, but in this case it is.
So, I remember doing something like this in a Cyptology course at DTU, but there does exists a much easier solution for factoring large numbers.
This of course only works if the number is in the database, but in this case it is.
Last updated