Update e_01.py

This commit is contained in:
Bill Buchanan
2021-01-20 19:08:34 +00:00
committed by GitHub
parent cf709bb5d6
commit 35ed84c7b3

View File

@@ -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)