public_key_cryptography course - challenges 4 - private key computation
This commit is contained in:
parent
c72e3335ea
commit
ac83990bc9
2 changed files with 7 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ from public_key_cryptography import (
|
|||
modular_exponentiation,
|
||||
basic_encryption,
|
||||
Euler_totient,
|
||||
private_key,
|
||||
)
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
@ -35,4 +36,5 @@ if __name__ == "__main__":
|
|||
print(modular_exponentiation())
|
||||
print(basic_encryption(12, 17, 23))
|
||||
print(Euler_totient(857504083339712752489993810777, 1029224947942998075080348647219))
|
||||
print(private_key(857504083339712752489993810777, 1029224947942998075080348647219, 0x10001))
|
||||
# fmt: on
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue