happy-cracking
A fast, comprehensive CTF (Capture The Flag) toolkit written in Rust. Provides 30+ command-line utilities for cryptographic encoding/decoding, classic ciphers, hash operations, and analysis tools commonly used in security competitions.
Installation
The binary will be available at target/release/happy-cracking.
Features
Encoding (11 tools)
| Command | Description |
|---|---|
base64 |
Base64 encode/decode |
base32 |
Base32 encode/decode |
base58 |
Base58 encode/decode (Bitcoin-style) |
base85 |
Base85 (ASCII85) encode/decode |
base91 |
Base91 encode/decode |
hex |
Hexadecimal encode/decode |
url |
URL percent-encoding encode/decode |
binary |
Binary (8-bit) encode/decode |
morse |
Morse code encode/decode |
a1z26 |
A=1, B=2, ..., Z=26 number-letter conversion |
numconv |
Number base conversion (bases 2-36) |
Classic Ciphers (12 tools)
| Command | Description |
|---|---|
rot13 |
ROT13 cipher |
rot47 |
ROT47 cipher (ASCII 33-126 range) |
caesar |
Caesar cipher with encrypt/decrypt/bruteforce |
vigenere |
Vigenere polyalphabetic cipher |
beaufort |
Beaufort cipher (self-reciprocal Vigenere variant) |
atbash |
Atbash cipher (A↔Z substitution) |
affine |
Affine cipher (ax+b mod 26) |
railfence |
Rail Fence transposition cipher |
playfair |
Playfair cipher (5x5 digraph substitution) |
columnar |
Columnar transposition cipher |
baconian |
Baconian cipher (5-bit A/B steganographic encoding) |
polybius |
Polybius square cipher |
xor |
XOR cipher with single-byte bruteforce |
Hash Operations (2 tools)
| Command | Description |
|---|---|
hash |
Generate MD5, SHA1, SHA256, SHA512 hashes |
hashid |
Identify hash type from a hash string |
Utilities (7 tools)
| Command | Description |
|---|---|
auto |
Auto-detect and decode common encodings |
chain |
Chain multiple operations together (CyberChef-style) |
entropy |
Shannon entropy analysis |
frequency |
Character frequency analysis |
math |
Number theory tools (GCD, LCM, modular inverse, modular exponentiation) |
primes |
Prime factorization and primality test |
str |
String tools (reverse, ord, chr) |
Usage
Encoding
# Base64
# Base85 (ASCII85)
# A1Z26
# Number base conversion
Classic Ciphers
# Caesar cipher
# Vigenere cipher
# Playfair cipher
# Columnar transposition
# ROT47 (numbers and symbols too)
Hash Operations
Utilities
# Shannon entropy analysis
# Number theory
# Prime factorization
# String tools
# Chain operations (CyberChef-style pipeline)
The chain command supports the following operations: base64-encode, base64-decode, base32-encode, base32-decode, hex-encode, hex-decode, url-encode, url-decode, binary-encode, binary-decode, rot13, rot47, reverse, upper, lower.
Development
License
This project is for educational and CTF competition purposes.