mirror of
https://github.com/billbuchanan/appliedcrypto.git
synced 2026-02-21 11:18:02 +00:00
Update input method for exponent and prime
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
message = raw_input('Enter message: ')
|
||||
e = raw_input('Enter exponent: ')
|
||||
p = raw_input('Enter prime ')
|
||||
e = input('Enter exponent: ')
|
||||
p = input('Enter prime ')
|
||||
|
||||
cipher = (int(message) ** int(e)) % int(p)
|
||||
print (cipher)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user