ALL the CTFS of Crypto2025 finally

This commit is contained in:
emln
2025-06-02 19:35:30 +02:00
parent aa0fe54b3b
commit 50c18f35b9
442 changed files with 1743 additions and 8 deletions

View File

@ -0,0 +1,11 @@
from Crypto.Util.number import bytes_to_long, getPrime
from secret import flag
n1 = getPrime(512)*getPrime(512)
n2 = getPrime(512)*getPrime(512)
n3 = getPrime(512)*getPrime(512)
n = [n1, n2, n3]
print(n)
e = 3
m = bytes_to_long(flag.encode())
print([pow(m, e, nn) for nn in n])