Home
Writeups Misc About
The Matrix

The Matrix

This is weirdly RSA, but in a "matrix" context. To decrypt message in RSA, we need to calculate m=cdmodp, where d=e1modϕ(n). ϕ(n) is the multiplicative order of the group.

In this challenge, we are under some group of matrix with size 50x50, or in math notations, GF(50,GF(2)) and not under modn. Thus, d=e1mod|G|, where |G| is the order of the group GF(50,GF(2)). As the ciphertext matrix c is an element of G, by Lagrange's theorem, |C| divides |G|.

Hence, d=e1mod|C|.

Sage Implementation: