8 lines
203 B
Python
8 lines
203 B
Python
|
|
# Challenge PK-crypto-1
|
||
|
|
def modular_exponentiation():
|
||
|
|
return pow(101, 17, 22663)
|
||
|
|
|
||
|
|
|
||
|
|
# Challenge PK-crypto-2
|
||
|
|
def basic_encryption(message: int, p: int, q: int):
|
||
|
|
return pow(message, 0x10001, p * q)
|