◈ Kryptoveyra

CIPHER LIBRARY

Encrypt a message

Choose the method to transform your text.

Switch to decode →
SubstitutionCaesar

Shift each Latin letter through the alphabet by a fixed amount. The decoder shifts in the opposite direction.

SubstitutionROT13

Rotate A–Z by thirteen places. Applying the operation twice restores the original.

SubstitutionROT5 digits

Rotate decimal digits five places. Letters and punctuation stay unchanged.

SubstitutionROT18

Apply ROT13 to Latin letters and ROT5 to decimal digits.

SubstitutionROT47

Rotate the 94 printable ASCII symbols from ! through ~ by 47 places.

SubstitutionAtbash

Reverse the Latin alphabet. A becomes Z and B becomes Y.

SubstitutionDecimal Atbash

Reverse the decimal digit alphabet. Zero becomes nine and one becomes eight.

SubstitutionAffine

Transform a letter index with (a × index + b) modulo 26. Multipliers must be coprime to 26.

SubstitutionMultiplicative

Multiply Latin letter indexes modulo 26. The decoder uses the modular inverse.

SubstitutionKeyword substitution

Build a cipher alphabet from unique keyword letters followed by the remaining alphabet.

SubstitutionMonoalphabetic alphabet

Choose an explicit substitution alphabet of 26 distinct letters.

PolyalphabeticPorta

Use thirteen reciprocal alphabets selected by pairs of key letters.

PolyalphabeticVigenère

Add the repeating key index to each plaintext letter.

PolyalphabeticBeaufort

Subtract each letter index from the repeating key index.

PolyalphabeticVariant Beaufort

Subtract the repeating key when encrypting and add it when decrypting.

PolyalphabeticGronsfeld

Use a repeating sequence of decimal shift digits.

PolyalphabeticPlaintext autokey

Extend the initial key with the plaintext letters as they are processed.

PolyalphabeticCiphertext autokey

Extend the initial key with the ciphertext letters as they are processed.

PolyalphabeticRunning key

Use a key text at least as long as the message, without repeating it.

PolyalphabeticTrithemius

Increase the shift by one for each Latin letter, beginning at zero.

PolyalphabeticProgressive Caesar

Choose the initial shift and a step added at every Latin letter.

TranspositionReverse transposition

Read the message backwards by Unicode code point.

TranspositionPair swap

Swap adjacent characters in pairs. A final unpaired character stays in place.

TranspositionOdd–even transposition

Read odd-numbered positions first, then even-numbered positions.

TranspositionRail fence

Write characters along a zigzag and read each rail in order.

TranspositionRail fence with offset

Start at a chosen position within the zigzag cycle.

TranspositionReverse rail fence

Read the zigzag rails from bottom to top.

TranspositionScytale

Write across rows of fixed width and read down the columns. Incomplete rows need no padding.

TranspositionKeyword columnar

Sort the columns by key letter, breaking ties left to right.

TranspositionDouble columnar

Apply two keyword columnar transpositions. Decoding reverses the key order.

TranspositionMyszkowski

Read tied keyword columns together across each row.

TranspositionAlternating rows

Reverse every second row in the grid. Incomplete grid cells are skipped.

TranspositionAlternating columns

Read each column, changing vertical direction after every column. Incomplete grid cells are skipped.

TranspositionDiagonal route

Read diagonals by increasing row-plus-column index. Incomplete grid cells are skipped.

TranspositionSpiral route

Read clockwise from the top-left corner, moving inward. Incomplete grid cells are skipped.

Coordinate ciphersPolybius square

Map Latin letters to row and column coordinates in a 5×5 square. I and J share a cell.

Coordinate ciphers6×6 Polybius square

Map Latin letters and digits to row and column coordinates in a 6×6 square.

Coordinate ciphersADFGX

Convert symbols to ADFGX pairs and then transpose the resulting columns by keyword.

Coordinate ciphersADFGVX

Convert symbols to ADFGVX pairs and then transpose the resulting columns by keyword.

Coordinate ciphersBifid

Write row coordinates followed by column coordinates within each block, then read in pairs. I and J share a cell.

Coordinate ciphersPlayfair

Encrypt pairs in a keyed square using row, column or rectangle rules. I and J merge. Padding stays visible after decoding.

Coordinate ciphersHill 2×2

Multiply pairs of Latin letter indexes by an invertible 2×2 matrix modulo 26. Odd plaintext length is padded with X.

Byte ciphersRepeating-key XOR

XOR UTF-8 bytes with a repeating key. Ciphertext is hexadecimal. This is an educational construction.

EncodingsHexadecimal

Represent each UTF-8 byte with two hexadecimal digits.

EncodingsBinary UTF-8

Represent UTF-8 bytes as eight binary digits per byte.

EncodingsBase64

Encode UTF-8 bytes as printable Base64 symbols.

EncodingsBase64URL

Use Base64 with URL-safe symbols and omit padding.

EncodingsURL percent encoding

Encode text as a URL component using UTF-8 percent escapes.

EncodingsMorse code

Convert Latin letters and digits to Morse symbols. A slash separates words.

Coordinate ciphersBacon biliteral

Represent each Latin letter with five A/B symbols in the 26-letter variant.

Coordinate ciphersFour-square

Encrypt pairs using two standard squares and two keyed squares. I and J merge. Odd plaintext is padded with X.