# CTF Cryptography

> Given a signal in a challenge, reach the right attack: techniques with field-tested operational detail and a clear map of what does not work.

Source: https://sinapsi.wiki/docs/wiki-ctf-crypto/

## What it covers

112 techniques for CTF crypto: given a signal, reach the right attack — with field-tested operational detail and a clear map of what does NOT work. Distilled from real CTF campaign notes, every claim cross-checked against the sources (2,442 checked, 50 refuted and corrected).

**Who it is for:** CTF players, security students and penetration testers working on cryptography challenges.

| Area | Pages |
|---|---:|
| Block ciphers | 17 |
| RSA | 17 |
| Hash functions | 13 |
| Number theory | 13 |
| Diffie–Hellman | 10 |
| Lattices | 8 |
| Signatures | 7 |
| Stream ciphers | 6 |
| Side channels | 5 |
| Elliptic curves | 5 |
| Discrete log | 4 |
| Methodology | 4 |
| Classical ciphers | 3 |
| **Total** | **112** |

## Connect it

One wiki only:

```
https://sinapsi.wiki/mcp/w/ctf-crypto/
```

```bash
claude mcp add --transport http sinapsi-ctf-crypto https://sinapsi.wiki/mcp/w/ctf-crypto/
```

Or use the hub `https://sinapsi.wiki/mcp/hub/` and pass `wiki="ctf-crypto"`. Other clients: [Connect a client](/docs/claude-code/). No key needed.

## Questions it answers

- *The challenge encrypts with AES-CTR and the nonce seems to repeat: what is the attack?*
- *How do I recognise that an RSA challenge needs a lattice attack?*
- *Which statistical attack fits this S-box?*
- *When does Pohlig–Hellman apply to a discrete-log challenge?*

## Pages to start from

- [CTR Nonce Reuse](https://sinapsi.wiki/w/ctf-crypto/p/block-cipher/ctr-nonce-reuse/)
- [CBC Bit-Flipping](https://sinapsi.wiki/w/ctf-crypto/p/block-cipher/cbc-bit-flipping/)
- [Slide Attack](https://sinapsi.wiki/w/ctf-crypto/p/block-cipher/slide-attack/)
- [S-box Analysis](https://sinapsi.wiki/w/ctf-crypto/p/block-cipher/sbox-analysis/)
- [Related-Key Attack](https://sinapsi.wiki/w/ctf-crypto/p/block-cipher/related-key-attack/)

Browse everything at [sinapsi.wiki/w/ctf-crypto](https://sinapsi.wiki/w/ctf-crypto/) · Markdown index for LLMs: [llms.txt](https://sinapsi.wiki/w/ctf-crypto/llms.txt).

> For CTF and education. 2,442 claims were checked against the sources; 50 were refuted and corrected.
