Diffie-Hellman Carpet

This tool creates a Diffie-Hellman Carpet.

The colour shown at coordinates $x=g^a$ and $y=g^b$ represents the residue $g^{ab}$ (0=white, darker = larger).

In essence, to solve the Computational Diffie Hellman Problem, you need to be able to predict the colour (residue) in terms of the coordinates.