ICS-Assignment 3 Code & Output
ICS-Assignment 3 Code & Output
24276
72004863L
ICS
ASSIGNMENT 3 CODE:
#Diffie Hellman Key Exchange Alogorithm
# Begin sharedPrime = int(input("Enter shared
Prime(n):")) sharedBase = int(input("Enter shared
Base(g):")) aliceSecret = int(input("Enter Alice
Secret Key(x):")) bobSecret = int(input("Enter Bob
Secret Key(y):")) print( "\nPublicly Shared
Variables:") print( "Publicly Shared Prime: " ,
sharedPrime ) print( "Publicly Shared Base: " ,
sharedBase )
OUTPUT: