Home
Writeups Misc About
Diffie-Hellman Starter 2

Diffie-Hellman Starter 2

The task is to find the generator of the finite field. There are multiple ways to do this:

Naive implementation (brute-force). Credits to Landryl @ Cryptohack.

My solution in Sage:

Shorter solution in Sage: