# Classic Ciphers and Encodings Caesar, Vigenere, Playfair, rail fence, Morse, NATO, Braille, Base32/58/64 and frequency analysis for puzzles and learning. ## How to pay Machine-payable over x402. USDC on: Base (eip155:8453), Solana (solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp), Polygon (eip155:137), Arbitrum One (eip155:42161). No accounts. No API keys. No signup. The paying wallet is the account. ## Machine-readable - OpenAPI: https://text-ciphers.x402tookit.com/openapi.json - x402 manifest: https://text-ciphers.x402tookit.com/.well-known/x402 - Catalog (free): https://text-ciphers.x402tookit.com/catalog - Health (free): https://text-ciphers.x402tookit.com/health - Uptime (free): https://text-ciphers.x402tookit.com/uptime ## Endpoints (10) ### GET /braille — $0.02 Grade 1 Braille text to Unicode Braille cells and back, with number sign, capital sign and dot numbers per cell. Params: text: string, mode?: string Example: https://text-ciphers.x402tookit.com/braille?text=Hello+2026 ### GET /encode-text — $0.02 Convert text or bytes to and from binary, octal, hex, decimal, Base32 (RFC 4648), Base58 (Bitcoin) and Base64. Params: text: string, format: string, mode?: string, inputType?: string Example: https://text-ciphers.x402tookit.com/encode-text?text=foobar&format=base32 ### GET /frequency-analysis — $0.02 Letter frequencies, index of coincidence and the most likely Caesar shift of a ciphertext using English statistics. Params: text: string Example: https://text-ciphers.x402tookit.com/frequency-analysis?text=Wklv+lv+d+vhfuhw+phvvdjh+derxw+d+fdhvdu+flskhu+zlwk+d+ixqqb+vkliw ### GET /morse — $0.02 Morse code encode or decode (ITU-R M.1677) with dot/dash timing in units and milliseconds at a chosen words per minute. Params: text: string, mode?: string, wpm?: number Example: https://text-ciphers.x402tookit.com/morse?text=SOS+PARIS&mode=encode&wpm=20 ### GET /nato — $0.02 Spell text in the NATO phonetic alphabet (Alfa, Bravo, Charlie) or decode NATO words back to letters and digits. Params: text: string, mode?: string Example: https://text-ciphers.x402tookit.com/nato?text=Hello+42 ### GET /number-ciphers — $0.02 A1Z26 (A=1) and Polybius square number ciphers, both ways, with optional keyword square and ADFGX labels. Params: text: string, cipher?: string, mode?: string, key?: string, labels?: string Example: https://text-ciphers.x402tookit.com/number-ciphers?text=Hello+World&cipher=polybius ### GET /playfair — $0.02 Playfair cipher encode or decode with a keyword; shows the 5x5 square and the digraphs. I and J are merged. Params: text: string, key: string, mode?: string Example: https://text-ciphers.x402tookit.com/playfair?text=Hide+the+gold+in+the+tree+stump&key=Playfair+example ### GET /rail-fence — $0.02 Rail fence (zigzag) transposition cipher encode or decode with 2 to 20 rails; letters and digits only by default. Params: text: string, rails: integer, mode?: string, raw?: string Example: https://text-ciphers.x402tookit.com/rail-fence?text=WE+ARE+DISCOVERED.+FLEE+AT+ONCE&rails=3 ### GET /shift-ciphers — $0.02 Caesar, ROT13, ROT47, ROT5 and Atbash encode or decode for puzzles and learning. Not secure; keeps case and punctuation. Params: text: string, cipher?: string, shift?: integer, mode?: string Example: https://text-ciphers.x402tookit.com/shift-ciphers?text=Attack+at+dawn&cipher=caesar&shift=3 ### GET /vigenere — $0.02 Vigenere cipher encode or decode with a key, or estimate the key length of a ciphertext by index of coincidence. Params: text: string, key?: string, mode?: string Example: https://text-ciphers.x402tookit.com/vigenere?text=ATTACKATDAWN&key=LEMON&mode=encode ## Terms For education, puzzles and games only. Every cipher here (Caesar, ROT13, Atbash, Vigenere, Playfair, rail fence, Polybius) is trivially breakable and provides NO security or privacy; Base32, Base58, Base64, hex and Morse are encodings, not encryption. Never use these to protect real secrets, passwords or personal data. Do not send sensitive text to any service. Provided as is.