/ctf-security:rot-cipherfrom ctf-security
Decifratura e cifratura ROT-N (Cifrario di Cesare). Usa questa skill quando l'utente chiede di decifrare, cifrare, o analizzare testo con crittografia ROT, Caesar cipher, o shift cipher. La skill supporta sia decodifica con shift noto (ROT-1 fino a ROT-25) che ricerca automatica dello shift corretto tramite brute force e analisi di frequenza. Usa anche quando l'utente vuole implementazioni in linguaggi specifici (Python, JavaScript, Java, C++, C#, Go, Rust, Ruby, PHP, Bash, Kotlin, Swift).
Ships in ctf-security. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Skill per decifrare e cifrare testo utilizzando il cifrario ROT (rotazionale), anche noto come Cifrario di Cesare.
Il cifrario ROT è un tipo di cifrario a sostituzione dove ogni lettera viene sostituita con una lettera che si trova a una posizione fissa nell'alfabeto. ROT-13 è la variante più famosa, dove ogni lettera viene spostata di 13 posizioni.
Caratteristiche:
Quando l'utente specifica il valore di shift (es. ROT-13):
python3 scripts/rot_decipher.py "Uryyb Jbeyq!" --shift 13
Per codificare testo in chiaro:
python3 scripts/rot_decipher.py "Hello World!" --shift 13 --encode
Quando lo shift non è noto, usa il brute force per provare tutti i 25 possibili shift:
# Mostra i top 5 risultati più probabili
python3 scripts/rot_decipher.py "Uryyb Jbeyq!" --brute-force
# Mostra più risultati per analisi manuale
python3 scripts/rot_decipher.py "Uryyb Jbeyq!" --brute-force --top 10
Il brute force usa analisi di frequenza delle lettere per determinare quali decodifiche sono più probabili.
Quando l'utente vuole un'implementazione in un linguaggio specifico o desidera personalizzare l'algoritmo:
Consulta references/implementations.md per implementazioni di riferimento in:
Adatta l'implementazione alle necessità specifiche dell'utente
Aggiungi funzionalità extra se richieste (validazione input, gestione errori, performance optimization)
scripts/rot_decipher.pyScript Python completo con tre modalità operative:
Decodifica:
python3 scripts/rot_decipher.py "testo cifrato" --shift N
Codifica:
python3 scripts/rot_decipher.py "testo in chiaro" --shift N --encode
Brute Force:
python3 scripts/rot_decipher.py "testo cifrato" --brute-force [--top N]
Lo script include:
rot_decode() e rot_encode()brute_force_rot() per ricerca automaticareferences/implementations.mdContiene implementazioni complete e testate del cifrario ROT in 12+ linguaggi di programmazione, con:
Quando consultare:
Il metodo più efficace per trovare lo shift corretto:
Per testi brevi, cerca pattern riconoscibili:
Quando il brute force restituisce multipli candidati, considera:
# Utente fornisce: "Uryyb Jbeyq!"
python3 scripts/rot_decipher.py "Uryyb Jbeyq!" --shift 13
# Output: Hello World!
testo_cifrato = "Pntvb, jvfp ptyivf rfg!"
# Usa brute force
python3 scripts/rot_decipher.py "Pntvb, jvfp ptyivf rfg!" --brute-force --top 3
# Risultati mostrano ROT-13 come più probabile
# Output decodificato: "Ciao, vidi Gallia est!"
// L'utente vuole una versione JavaScript minimalista
const rot = (s, n) => s.replace(/[a-z]/gi, c =>
String.fromCharCode((c.charCodeAt(0) - (c < 'a' ? 65 : 97) - n + 26) % 26 + (c < 'a' ? 65 : 97))
);
console.log(rot("Uryyb Jbeyq!", 13)); // "Hello World!"
Per decodificare: (carattere - base - shift + 26) % 26 + base
Per codificare: (carattere - base + shift) % 26 + base
Dove:
base = 65 per maiuscole (ASCII 'A'), 97 per minuscole (ASCII 'a')shift = numero di posizioni (1-25)% 26 = operazione modulo per "wrapping" circolare--top N per vedere più opzioniWhat SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/crypto-classical-ciphersSolve classical cipher CTF challenges including Caesar cipher, ROT-N, Vigenère cipher with Autokey variant, substitution ciphers (monoalphabetic and polyalphabetic), transposition ciphers (rail-fence, columnar), Playfair cipher, and other historical encryption methods. Use when analyzing text-only ciphertext, challenges mentioning historical or classical ciphers, frequency analysis opportunities, or when ciphertext contains only letters without numbers. Includes automated solvers for Caesar/ROT-N with all 26 shifts, Vigenère key recovery using Kasiski examination and index of coincidence, frequency analysis for substitution ciphers, dcode.fr and CyberChef integration, complete statistical analysis tools, and English/Italian language frequency tables for OliCyber.IT challenges. Beginner-friendly entry point to CTF cryptography./crypto-general-methodologyComprehensive methodology for solving CTF cryptography challenges including workflow guidance, cipher identification, reconnaissance techniques, tool selection strategy, and challenge categorization. Use when approaching any crypto CTF challenge, need to identify unknown ciphers or encodings, select appropriate tools (dcode.fr, factordb, CyberChef, SageMath, RsaCtfTool), develop attack strategies, or understand crypto challenge patterns. Covers classical ciphers, RSA, AES, block ciphers, PRNG, hash functions, zero-knowledge proofs, encoding detection, and cross-category exploitation techniques. Includes decision trees, cheatsheets for SageMath and PyCryptodome, and systematic approaches for reconnaissance and cryptanalysis.Other plugins' skills for the same job
npx claudepluginhub giofornari/skills --plugin ctf-security