diff --git a/unit04_public_key/src/e_01.py b/unit04_public_key/src/e_01.py index 8cbd7c7..8c17707 100644 --- a/unit04_public_key/src/e_01.py +++ b/unit04_public_key/src/e_01.py @@ -5,10 +5,11 @@ PHI=(p-1)*(q-1) e=3 for d in range(1,100): if ((e*d % PHI)==1): break -print e,N -print d,N +print (e,N) +print (d,N) M=4 cipher = M**e % N -print cipher +print (cipher) message = cipher**d % N -print message +print (message) +