{"author_name":"Furutsuki","categories":[],"published":"2021-12-19 23:08:10","author_url":"https://blog.hatena.ne.jp/Furutsuki/","blog_url":"https://furutsuki.hatenablog.com/","blog_title":"\u3075\u308b\u3064\u304d","url":"https://furutsuki.hatenablog.com/entry/2021/12/19/230810","width":"100%","type":"rich","image_url":null,"provider_url":"https://hatena.blog","height":"190","description":"\u554f\u984c from Crypto.Util.number import getPrime, isPrime, inverse import os if __name__ == '__main__': # Plaintext (FLAG) m = int.from_bytes(os.getenv(\"FLAG\", \"FAKE{sample_flag}\").encode(), 'big') # Generate key p = getPrime(600) q = getPrime(500) n = p*p*q*q e = 65537 s = ((p**3 - 20211219*q) * inverse(\u2026","version":"1.0","title":"Leaky RSA - RTACTF upsolve","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffurutsuki.hatenablog.com%2Fentry%2F2021%2F12%2F19%2F230810\" title=\"Leaky RSA - RTACTF upsolve - \u3075\u308b\u3064\u304d\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog"}