We are given this image, and hinted towards the name Affina.
With a description reading
Plain text
1
2
3
4
5
Affina was struggling with her graphing quadratics homework. Bored, she decided to cheat by using Desmos to graph the given quadratic, and then realized that she could use it to send messages to her best friend without anyone noticing!
She sent the following message to her friend: 7rr4p6_4e_4ph6bo8hap2?
Can you decrypt it using the image of the quadratic Affina used? Note: the flag should make relative sense.
The task is to GUESS how Affine cipher is used with respect to the quadratic (x+1)*(x+2) = 0
After having many GUESSES, I GUESSED that it could be simple affine cipher with mapping 3x+2 mod 26 as (x+1)*(x+2) = x^2 + 3x + 2 as hey!, why should it be quadratic right?
But dont we have letters too? So I GUESSED we shouldnt care about them for now.
What about underscores? GUESS that they are just word-delimiters.
Plain text
1
2
3
4
5
c = 3x + 2 mod 26
c - 2 = 3x mod 26
3^-1 * (c - 2) = x mod 26
9c - 18 = x mod 26
x = 9c + 8 mod 26