ALL the CTFS of Crypto2025 finally
This commit is contained in:
8
crypto-asimmetric/RSA-4/chall.py
Normal file
8
crypto-asimmetric/RSA-4/chall.py
Normal file
@ -0,0 +1,8 @@
|
||||
from Crypto.Util.number import bytes_to_long, getPrime
|
||||
from secret import flag
|
||||
p, q = getPrime(512), getPrime(512)
|
||||
n = p*q
|
||||
e = [31, 71]
|
||||
print(n)
|
||||
m = bytes_to_long(flag.encode())
|
||||
print([pow(m, ee, n) for ee in e])
|
||||
Reference in New Issue
Block a user