ctf-crypto
Agent skill fromljagiello/ctf-skills
Provides cryptography attack techniques for CTF challenges. Use when attacking encryption, hashing, signatures, ZKP, PRNG, or mathematical crypto problems involving RSA, AES, ECC, lattices, LWE, CVP, number theory, Coppersmith, Pollard, Wiener, padding oracle, GCM, key derivation, or stream/block cipher weaknesses.
How to install ctf-crypto
install ctf-crypto
# install the ctf-skills pack with the skills CLI
npx skills add ljagiello/ctf-skills# or add only this skill to Claude Code: copy the folder
ctf-crypto/
# into
~/.claude/skills/ctf-crypto/ (all projects)
.claude/skills/ctf-crypto/ (one project)
1# CTF Cryptography23Quick reference for crypto CTF challenges. Each technique has a one-liner here; see supporting files for full details with code.45## Prerequisites67**Python packages (all platforms):**8```bash9pip install pycryptodome z3-solver sympy gmpy2 hashpumpy fpylll py_ecc10# Coppersmith (optional): pip install coppersmith11# Alternative Coppersmith lib: git clone https://github.com/jvdsn/crypto-attacks ~/.ctf-tools/crypto-attacks && pip install -r ~/.ctf-tools/crypto-attacks/requirements.txt12```1314**Linux (apt):**15```bash16apt install hashcat17```1819**macOS (Homebrew):**20```bash21brew install hashcat22```2324**Manual install:**25- SageMath (optional — only for legacy Sage fallback snippets (collapsed sections)) — Linux: `apt install sagemath`, macOS: `brew install --cask sage`26- RsaCtfTool — `git clone https://github.com/RsaCtfTool/RsaCtfTool` (automated RSA attacks)27- crypto-attacks (Coppersmith) — `git clone https://github.com/jvdsn/crypto-attacks ~/.ctf-tools/crypto-attacks` + `pip install -r ~/.ctf-tools/crypto-attacks/requirements.txt` (alternative to `pip install coppersmith`)2829> **Note:** `gmpy2` requires libgmp — Linux: `apt install libgmp-dev`, macOS: `brew install gmp`.3031## Additional Resources32…
Excerpt shown under the repository's MIT license.
