CLASSICAL CRYPTOGRAPHY
Every cipher
has a way back.
Explore 51 reversible methods, from Caesar and Playfair to ADFGVX and Base64.
Shift each Latin letter through the alphabet by a fixed amount. The decoder shifts in the opposite direction.
SubstitutionROT13Rotate A–Z by thirteen places. Applying the operation twice restores the original.
SubstitutionROT5 digitsRotate decimal digits five places. Letters and punctuation stay unchanged.
SubstitutionROT18Apply ROT13 to Latin letters and ROT5 to decimal digits.
SubstitutionROT47Rotate the 94 printable ASCII symbols from ! through ~ by 47 places.
SubstitutionAtbashReverse the Latin alphabet. A becomes Z and B becomes Y.
SubstitutionDecimal AtbashReverse the decimal digit alphabet. Zero becomes nine and one becomes eight.
SubstitutionAffineTransform a letter index with (a × index + b) modulo 26. Multipliers must be coprime to 26.
SubstitutionMultiplicativeMultiply Latin letter indexes modulo 26. The decoder uses the modular inverse.
SubstitutionKeyword substitutionBuild a cipher alphabet from unique keyword letters followed by the remaining alphabet.
SubstitutionMonoalphabetic alphabetChoose an explicit substitution alphabet of 26 distinct letters.
PolyalphabeticPortaUse thirteen reciprocal alphabets selected by pairs of key letters.
PolyalphabeticVigenèreAdd the repeating key index to each plaintext letter.
PolyalphabeticBeaufortSubtract each letter index from the repeating key index.
PolyalphabeticVariant BeaufortSubtract the repeating key when encrypting and add it when decrypting.
PolyalphabeticGronsfeldUse a repeating sequence of decimal shift digits.
PolyalphabeticPlaintext autokeyExtend the initial key with the plaintext letters as they are processed.
PolyalphabeticCiphertext autokeyExtend the initial key with the ciphertext letters as they are processed.
PolyalphabeticRunning keyUse a key text at least as long as the message, without repeating it.
PolyalphabeticTrithemiusIncrease the shift by one for each Latin letter, beginning at zero.
PolyalphabeticProgressive CaesarChoose the initial shift and a step added at every Latin letter.
TranspositionReverse transpositionRead the message backwards by Unicode code point.
TranspositionPair swapSwap adjacent characters in pairs. A final unpaired character stays in place.
TranspositionOdd–even transpositionRead odd-numbered positions first, then even-numbered positions.
TranspositionRail fenceWrite characters along a zigzag and read each rail in order.
TranspositionRail fence with offsetStart at a chosen position within the zigzag cycle.
TranspositionReverse rail fenceRead the zigzag rails from bottom to top.
TranspositionScytaleWrite across rows of fixed width and read down the columns. Incomplete rows need no padding.
TranspositionKeyword columnarSort the columns by key letter, breaking ties left to right.
TranspositionDouble columnarApply two keyword columnar transpositions. Decoding reverses the key order.
TranspositionMyszkowskiRead tied keyword columns together across each row.
TranspositionAlternating rowsReverse every second row in the grid. Incomplete grid cells are skipped.
TranspositionAlternating columnsRead each column, changing vertical direction after every column. Incomplete grid cells are skipped.
TranspositionDiagonal routeRead diagonals by increasing row-plus-column index. Incomplete grid cells are skipped.
TranspositionSpiral routeRead clockwise from the top-left corner, moving inward. Incomplete grid cells are skipped.
Coordinate ciphersPolybius squareMap Latin letters to row and column coordinates in a 5×5 square. I and J share a cell.
Coordinate ciphers6×6 Polybius squareMap Latin letters and digits to row and column coordinates in a 6×6 square.
Coordinate ciphersADFGXConvert symbols to ADFGX pairs and then transpose the resulting columns by keyword.
Coordinate ciphersADFGVXConvert symbols to ADFGVX pairs and then transpose the resulting columns by keyword.
Coordinate ciphersBifidWrite row coordinates followed by column coordinates within each block, then read in pairs. I and J share a cell.
Coordinate ciphersPlayfairEncrypt pairs in a keyed square using row, column or rectangle rules. I and J merge. Padding stays visible after decoding.
Coordinate ciphersHill 2×2Multiply pairs of Latin letter indexes by an invertible 2×2 matrix modulo 26. Odd plaintext length is padded with X.
Byte ciphersRepeating-key XORXOR UTF-8 bytes with a repeating key. Ciphertext is hexadecimal. This is an educational construction.
EncodingsHexadecimalRepresent each UTF-8 byte with two hexadecimal digits.
EncodingsBinary UTF-8Represent UTF-8 bytes as eight binary digits per byte.
EncodingsBase64Encode UTF-8 bytes as printable Base64 symbols.
EncodingsBase64URLUse Base64 with URL-safe symbols and omit padding.
EncodingsURL percent encodingEncode text as a URL component using UTF-8 percent escapes.
EncodingsMorse codeConvert Latin letters and digits to Morse symbols. A slash separates words.
Coordinate ciphersBacon biliteralRepresent each Latin letter with five A/B symbols in the 26-letter variant.
Coordinate ciphersFour-squareEncrypt pairs using two standard squares and two keyed squares. I and J merge. Odd plaintext is padded with X.
No matching tools. Try a shorter term.