AlpacaHack Logo

Tag: RSA

Sign InSign Up
RSA

RSA is a representative public-key cryptosystem whose security is based on the difficulty of integer factorization. (automatically translated from Japanese)

minaminao
·Updated Apr 24, 2026
RSA Challenges

trippple

SECCON CTF 13 決勝観戦CTF
106 solves
Crypto

by

minaminao

minaminao

出力からフラグを復元してください🐍

import os
from Crypto.Util.number import getPrime, bytes_to_long

m = bytes_to_long(os.getenv("FLAG").encode())
p = getPrime(96)
n = p * p * p
e = 65537
c = pow(m, e, n)

print(f"{n,c=}")

出力:

n,c=(272361880253535445317143279209232620259509770172080133049487958853930525983846305005657, 69147423377323669983172806367084358432369489877851180970277804462365354019444586165184)

Please sign in to submit the flag.

descriptionsolveswriteups