CTF

RSA CTF Solver

Enter n, e and c to try small-e roots, trial division, Fermat, Wiener and Pollard's rho, then decrypt.

Runs locallyYour input never leaves this device
WORKBENCH

2 MB input limit · no history kept

Tries, in order: known p/q/d → small-e root → trial division → Fermat (close p and q) → Wiener (small d) → Pollard's rho. Large, properly generated keys can't be factored in a browser — check factordb first.

HOW TO USE

How to use the RSA CTF Solver

RSA is a CTF crypto staple. This solver tries known p/q/d, small-exponent roots, trial division, Fermat factorization for close primes, Wiener's attack for small d and Pollard's rho, then computes d and shows the plaintext with long_to_bytes.

  1. Enter n, e and c in decimal or 0x-prefixed hex.
  2. Add p, q or d if you already know them, then click Solve.
  3. Read the steps and plaintext. If n can't be factored, look it up on factordb and fill in p and q.
USE CASES

RSA CTF Solver use cases

  • Solve challenges with tiny moduli or primes that are too close.
  • Handle e = 3 when the message wasn't reduced by the modulus.
  • Compute φ(n), d and the plaintext from known factors.

Related topics: rsa, rsa ctf, factor, wiener attack, fermat, long_to_bytes, crypto

FAQ

RSA CTF Solver FAQ

Does the RSA CTF Solver upload my data?

No. Tool input and results stay in the current tab. Navigation may load static site assets, but does not upload the data you enter.

Is the RSA CTF Solver free? Do I need an account?

It's free with no account and no usage limits, like every other tool on SecTools.

Can I use the RSA CTF Solver on mobile or offline?

Yes. It works in mobile and desktop browsers and keeps working offline once the page has loaded. You can also self-host the open-source code on an internal network.

Can I treat the RSA CTF Solver's results as a final verdict?

Use them for triage and cross-checking. For important incidents, keep the original evidence and confirm with your formal verification or forensic process.

SECURITY NOTE

Use it safely

This tool supports analysis and interpretation; it doesn't replace a formal security review. Avoid pasting live credentials, private keys or production passwords on a shared computer. Close the tab when you're done and your input is gone.