 
 
 
 
 
   
 easier, let's choose a prime
 easier, let's choose a prime  such that
such that  is prime (so
 is prime (so  , with
, with  prime).
Since for any
 prime).
Since for any  with
 with 
 ,
, 
 
 is
 is  ,
,  ,
,  , or
, or  ,
so the order of
,
so the order of  is easy to compute.
 is easy to compute.
For our first example, let  .  
Then
.  
Then  has order
 has order  .
(I found
.
(I found  using the function znprimroot in PARI.  You can
also just compute the order of
 using the function znprimroot in PARI.  You can
also just compute the order of  ,
,  , etc., until you find a number
with order
, etc., until you find a number
with order  .)
.)
Nikita:  Chooses secret  ; sends
; sends 
 .
.
Michael:  Chooses secret  ; sends
; sends 
 .
.
Compute Shared Secret: 
Nikita:
 
Michael:
