Crypto CTF 2021 | Ferman

#cryptoctf2021

| Options: 
|   [P]rint encrypted flag 
|   [R]eveal the parameters 
|   [Q]uit
R
    e = 65537
    isPrime(p) = True
    isPrime(q) = True
    n = p * q
    (p - 909)**2 + (q - 90)**2 = 16212520494333996416890226900152047923537620951858239252703988271646437526442226532895216039795295446502617477329471066587734497127563372116916832558455375850031400902297200806278752561570469173348488579395908031513798278220088605752069741668269816480933749571221961803780562831566306524293221585154628640675654379134104130726218585921674610050054838563612037858111867480537457532677159703332923015117675309013982134236657193919091338388119916887426172644677396700056552886962890625
    m = bytes_to_long(flag)
    c = pow(m, e, n)