// cipher + friend
Your friend for ciphers.
Encode, decode, and watch ciphers work, character by character. Everything runs in your browser — nothing is ever sent to a server, no logs, no analytics, no peeking.
// pick a cipher
Caesar Cipher
classicalShift each letter by a fixed amount.
ROT13
classicalCaesar with shift 13. Encoding and decoding are the same operation.
Atbash
classicalMirror the alphabet — A↔Z, B↔Y, C↔X, and so on.
Vigenère
classicalPolyalphabetic shift — each letter moves by the matching letter of a repeating key.
Rail Fence
classicalWrite the message in a zigzag across N rails, then read off rail by rail.
Affine
classicalLinear substitution: y = (a·x + b) mod 26. Caesar is the special case where a = 1.
Bacon's Cipher
classicalEach letter as a 5-bit A/B pattern. The first ASCII-style binary, from 1605.
Polybius Square
classicalEach letter encoded as its (row, column) in a 5×5 grid. I and J share a cell.
Tap Code
classicalEach letter as two clusters of taps — row count, then column count. C and K share a cell.
Base64
encodingPack arbitrary bytes into the printable subset of ASCII.
Hex
encodingBytes as base-16 digits, two characters per byte.
URL
encodingPercent-encode characters that would break a URL.
Binary
encodingBytes as 8-bit binary, space-separated.
Braille
encodingTactile script for the visually impaired. Six-dot patterns per letter (Grade 1).
SHA-256
hashOne-way 256-bit cryptographic hash. Same input always yields the same digest.
AES-GCM
modernModern authenticated encryption. AES-256 + PBKDF2-derived key from your passphrase.
Morse
funDits and dahs. Letters separated by spaces, words by " / ".
Reverse
funRead the input backwards. The simplest possible cipher.
SpongeBob
funaLtErNaTiNg cAsE — encode and decode are the same operation.
Leet (1337)
funSubstitute letters with lookalike digits. h3110 fr13nd.
NATO Phonetic
funSpell each letter as its phonetic word: Alpha, Bravo, Charlie…
Pig Latin
funMove the leading consonants to the end and add "ay". Vowel-starts get "way".
Frequency Analysis
analysisCount how often each letter appears and compare to the English baseline.
23 of 23 ciphers