Modular Arithmetic and the Diffie-Hellman Algorithm

from blog Aleksandr Hovhannisyan, | ↗ original
Using the properties of congruence modulo, Alice and Bob can generate a shared private key and communicate publicly, while Eve will struggle to decipher their messages.