classical-cipher-analysis

Identify and decrypt classical ciphers from CTF challenges using Python.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/bingook/bingo --skill classical-cipher-analysis-bingook
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: classical-cipher-analysis
Source: https://github.com/bingook/bingo/tree/main/bingo/skills/hack-skills/classical-cipher-analysis
Command: npx skills add https://github.com/bingook/bingo --skill classical-cipher-analysis-bingook

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide for solving classical ciphers in CTF challenges, including frequency analysis, Kasiski examination, and known-plaintext cryptanalysis.

Core Features & Use Cases

  • Cipher Identification: Identifies substitution, Vigenere, transposition, XOR, or encoded text using character set analysis, IC, and Kasiski examination.
  • Monoalphabetic Substitution: Solves Caesar/ROT, affine, and Hill ciphers using frequency analysis, Kasiski examination, and known plaintext.
  • Polyalphabetic Ciphers: Cracks Vigenere and Playfair ciphers with IC-based key length detection and per-position frequency attacks.
  • Transposition Ciphers: Decrypts rail fence and columnar transposition ciphers using pattern analysis and brute force methods.
  • XOR Ciphers: Analyzes single-byte and multi-byte XOR ciphers with known plaintext methods and xortool.
  • Special Ciphers: Handles Bacon, Polybius, and Enigma ciphers using specific decoding techniques.

Quick Start

Use the classical-cipher-analysis skill to analyze a given ciphertext and attempt to decrypt it.

Frequently Asked Questions about classical-cipher-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify and decrypt classical ciphers in a CTF challenge?▼

To decrypt classical ciphers in a CTF challenge, the skill uses frequency analysis, Kasiski examination, and known-plaintext attacks to identify and crack substitution, Vigenere, transposition, and XOR ciphers.

What is the best way to find the key length for a Vigenere cipher?▼

The best way to find a Vigenere cipher key length is Kasiski examination and Index of Coincidence analysis, enabling per-position frequency attacks to crack the polyalphabetic substitution.

Can I break a single-byte XOR cipher using known plaintext?▼

Yes, you can break a single-byte or multi-byte XOR cipher using known plaintext methods and xortool, which analyze the data to recover the encryption key.

How do I decrypt a rail fence or columnar transposition cipher?▼

To decrypt a rail fence or columnar transposition cipher, pattern analysis and brute force methods are applied to rearrange the ciphertext back into its original plaintext form.

Does classical cipher analysis work for special ciphers like Bacon and Enigma?▼

Yes, classical cipher analysis works for special ciphers like Bacon, Polybius, and Enigma by applying specific decoding techniques tailored to their unique encryption mechanisms.