{"enrichment":{"faq":[{"a":"classical-cipher-analysis helps you break substitution ciphers by applying frequency analysis to identify patterns in the ciphertext. Start by calculating the index of coincidence (IC) to confirm monoalphabetic substitution, then compare letter frequencies against expected English distributions. For simple Caesar variants, brute-force all 25 rotations. For more complex monoalphabetic ciphers, use digraph and trigraph analysis alongside known-plaintext attacks or crib dragging to recover the substitution key.","q":"How to break substitution ciphers with classical-cipher-analysis?"},{"a":"classical-cipher-analysis uses Kasiski examination to break Vigenere ciphers by finding repeated sequences in the ciphertext and calculating the distances between them. The greatest common divisor of these distances reveals the likely key length. Once key length is known, you can split the ciphertext into columns, treat each as a separate Caesar cipher, and apply frequency analysis to recover each key character. This method is essential for polyalphabetic cipher cracking in CTF challenges.","q":"What is Kasiski examination and how does it crack Vigenere ciphers?"},{"a":"classical-cipher-analysis performs frequency analysis by counting letter occurrences in the ciphertext and comparing them to expected English letter distributions. It calculates the index of coincidence (IC) to distinguish monoalphabetic from polyalphabetic ciphers\u2014monoalphabetic ciphers show IC values near 0.065, while random text shows ~0.038. Digraph and trigraph frequency analysis further refines plaintext recovery by identifying common letter pairs and triplets.","q":"How does classical-cipher-analysis perform frequency analysis on encrypted text?"},{"a":"Yes, classical-cipher-analysis handles specialized classical ciphers including affine ciphers (brute-force all 312 valid key combinations), Hill ciphers (matrix inversion and known-plaintext attacks), and Playfair ciphers (digraph frequency analysis and grid reconstruction). Each method exploits the mathematical structure of the cipher to recover the key or plaintext without exhaustive search.","q":"Can classical-cipher-analysis solve affine, Hill, and Playfair ciphers?"},{"a":"classical-cipher-analysis includes detection and decoding for base64, hexadecimal, binary, and Morse-encoded text. It identifies encoding type by analyzing character sets and patterns, then applies the appropriate decoder. This feature is useful in CTF challenges where encoded layers wrap classical ciphers or where the plaintext itself is encoded rather than encrypted.","q":"Does classical-cipher-analysis detect and decode base64, hex, and Morse?"},{"a":"classical-cipher-analysis identifies ciphers by analyzing character set (letters only vs. symbols), frequency distribution shape, index of coincidence value, and repeating patterns. Transposition ciphers preserve letter frequencies; substitution ciphers distort them. Polyalphabetic ciphers show flattened IC. Rail fence and columnar transposition reveal themselves through anagram-like properties. This multi-factor approach narrows cipher type before applying targeted attacks.","q":"How does classical-cipher-analysis identify which cipher was used?"}],"shadow_tags":["frequency-distribution","polyalphabetic-ciphers","monoalphabetic-substitution","key-length-detection","cryptanalysis-automation","encoding-detection","matrix-based-crypto","digraph-analysis","ctf-challenges"],"summary_rewrite":"Identify and solve classical ciphers encountered in CTF challenges through systematic analysis. The skill covers cipher identification via character set, frequency distribution, and index of coincidence, then applies targeted attacks for monoalphabetic substitution, Caesar/ROT variants, polyalphabetic ciphers like Vigenere, and transposition methods. Includes Kasiski examination for key-length recovery and known-plaintext techniques."},"files":[{"bytes":19665,"path":"skills/classical-cipher-analysis/SKILL.md","sha256":"8bfe313fd732d0b5722d43dd0ab250c34a44b418fc95049fc78a8e9da8f6812f","url":"https://skillfed.io/files/yaklang/hack-skills/classical-cipher-analysis/5edc3dca/SKILL.md"}],"id":"yaklang/hack-skills/classical-cipher-analysis","links":{"html":"https://skillfed.io/yaklang/hack-skills/classical-cipher-analysis","md":"https://skillfed.io/yaklang/hack-skills/classical-cipher-analysis.md","repo":"https://github.com/yaklang/hack-skills"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":196,"language":"CSS","last_updated":"2026-06-16","license":"MIT","name":"classical-cipher-analysis","publisher":"yaklang","stars":1480},"relations":{"similar":[{"id":"ljagiello/ctf-skills/ctf-crypto"},{"id":"yaklang/hack-skills/symmetric-cipher-attacks"},{"id":"Unclecheng-li/VulnClaw/crypto-toolkit"},{"id":"cyberkaida/reverse-engineering-assistant/ctf-crypto"},{"id":"martinholovsky/claude-skills-generator/encryption"},{"id":"ljagiello/ctf-skills/ctf-misc"},{"id":"archestra-ai/archestra/cipher-decoder"},{"id":"Aradotso/security-skills/eastsword-dfyx-code-security-review"},{"id":"RightNow-AI/openfang/crypto-expert"},{"id":"dpearson2699/swift-ios-skills/cryptokit"}]},"slug":{"owner":"yaklang","repo":"hack-skills","skill":"classical-cipher-analysis"},"version":"5edc3dca"}
