Project 6, 2015 Research Experience for Teachers Project 4, 2016
Modulo Arithmetic Basics

Secret Key, Public Key, Hash Algorithms, Protocols, Authentication, Integrity, Confidentiality, Availability

 

Instructions:
    This applet shows that
   (ga mod p)b mod p = (gb mod p)a mod p
    
 
Enter numbers a and b in boxes labled num1:, num2:, and mod:. Enter numbers g and p in boxes with those labels. Click on Doit. Both calculations appear in the boxes of the right column with labels showing exactly the operations performed.
 
Question:
    Do the two results agree no matter what type of numbers p and g are?