CTF•密码学
用于 RSA、AES、ECC、格攻击、LWE、CVP、Coppersmith、Pollard、Wiener、填充预言机、GCM、KDF、伪随机数与零知识证明等密码学和数学类 CTF 题;触发名:ctf-crypto
npx skills add asdfgh1445/ctf-super-hub --skill ctf-crypto --agent codex
Same command for any agent — swap --agent for claude-code, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
What it does
Presents a quick reference of crypto CTF techniques and supporting resources for cryptography-focused challenges, including prerequisites and categorized attack methods.
How it works
The skill enumerates crypto domains (RSA, AES, ECC, lattice attacks, padding oracle, PRNG, ZKP, etc.) and provides:
- Prerequisites with listed Python packages and system packages
- Quick-start commands for identifying cipher types, extracting RSA parameters, and accessing common tooling
- Sections for Modern and Classical ciphers with example attack descriptions and references to detailed files (e.g., links to markdowns like classic-ciphers.md, modern-ciphers.md)
- A navigation guide (When to Pivot) suggesting switches to other challenge domains depending on the blocker
- A curated list of tools and techniques, including specific commands and tool names such as RsaCtfTool, SageMath, and hashcat, embedded within the descriptions
When to use it
Use when tackling crypto CTF challenges to quickly locate relevant technique categories, prerequisites, and example workflows; switch to related domains via the pivot guidance if cryptanalysis stalls.
What it can touch
- Prerequisite software installations: Python packages (pycryptodome, z3-solver, sympy, gmpy2, hashpumpy, fpylll, py_ecc), system packages (hashcat, sagemath, SageMath), and RSA toolchains like RsaCtfTool
- Command examples and tool invocations: python3, openssl, RsaCtfTool.py, SageMath, hashcat, hashid
Caveats
License: MIT; compatibility notes indicate it requires a filesystem-based agent with bash and Python 3 and internet access for tool installation. User-invocable is false, implying automation or integration constraints. No explicit risk or limitation statements beyond the stated prerequisites.
# CTF Cryptography Quick reference for crypto CTF challenges. Each technique has a one-liner here; see supporting files for full details with code. ## Prerequisites **Python packages (all platforms):** ```bash pip install pycryptodome z3-solver sympy gmpy2 hashpumpy fpylll py_ecc ``` **Linux (apt):** ```bash apt install hashcat sagemath ``` **macOS (Homebrew):** ```bash brew install hashcat ``` **Manual install:** - SageMath — Linux: `apt install sagemath`, macOS: `brew install --cask sage` - RsaCtfTool — `git clone https://github.com/RsaCtfTool/RsaCtfTool` (automated RSA attacks) > **Note:** `gmpy2` requires libgmp — Linux: `apt install libgmp-dev`, macOS: `brew install gmp`. ## Additional Resources - [classic-ciphers.md](classic-ciphers.md) - Classic ciphers: Vigenere (+ Kasiski examination), Atbash, substitution wheels, XOR variants (+ multi-byte frequency analysis), deterministic OTP, cascade XOR, book cipher, OTP key reuse / many-time pad, variable-length homophonic substitution, grid permutation cipher keyspace reduction, image-based Caesar shift ciphers, XOR key recovery via file format headers - [modern-ciphers.md](modern-ciphers.md) - Modern cipher attacks: AES (CFB-8, ECB
- Prerequisites
- Additional Resources
- When to Pivot
- Quick Start Commands
- Classic Ciphers
- Modern Cipher Attacks
- RSA Attacks
- Elliptic Curve Attacks
- Lattice / LWE Attacks
- ZKP & Constraint Solving
- Modern Cipher Attacks (Additional)
- Introspective CRC via GF(2) Linear Algebra
- CBC Padding Oracle Attack
- Bleichenbacher RSA Padding Oracle (ROBOT)
pip install pycryptodome z3-solver sympy gmpy2 hashpumpy fpylll py_ecc
apt install hashcat sagemath
brew install hashcat
Identify cipher type
python3 -c "from Crypto.Util.number import *; n=<N>; print(f'bits={n.bit_length()}')"
RSA quick check
python3 -c "from sympy import factorint; print(factorint(<n>))" # Small factors?
openssl rsa -pubin -in key.pub -text -noout # Extract n, e from PEM
Quick factorization tools
python3 RsaCtfTool.py -n <n> -e <e> --uncipher <c>What does the CTF•密码学 skill do?
用于 RSA、AES、ECC、格攻击、LWE、CVP、Coppersmith、Pollard、Wiener、填充预言机、GCM、KDF、伪随机数与零知识证明等密码学和数学类 CTF 题;触发名:ctf-crypto
How do I install it?
Run `npx skills add asdfgh1445/ctf-super-hub --skill ctf-crypto --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From asdfgh1445/ctf-super-hub, a repository with 718 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.