public_key_cryptography course - challenges 5 - decryption

This commit is contained in:
boyreau 2026-11-05 13:06:33 +01:00
commit 15131cf4fa
2 changed files with 8 additions and 0 deletions

View file

@ -13,6 +13,7 @@ from public_key_cryptography import (
basic_encryption,
Euler_totient,
private_key,
decode,
)
if __name__ == "__main__":
@ -37,4 +38,5 @@ if __name__ == "__main__":
print(basic_encryption(12, 17, 23))
print(Euler_totient(857504083339712752489993810777, 1029224947942998075080348647219))
print(private_key(857504083339712752489993810777, 1029224947942998075080348647219, 0x10001))
print(decode(857504083339712752489993810777, 1029224947942998075080348647219, 0x10001, 77578995801157823671636298847186723593814843845525223303932))
# fmt: on