Substitute

A substitution cipher allowing you to specify bytes to replace with other byte values. This can be used to create Caesar ciphers but is more powerful as any byte value can be substituted, not just letters, and the substitution values need not be in order.

Input: TextResult: Text

Text input

Run to see the result

Examples

Read a shifted alphabet: HELLO WORLD

Read a shifted alphabet: HELLO WORLD. The input is a small public learning fixture; it contains no private production data.

Input

HELLO WORLD

Expected answer

EBIIL TLOIA
Plaintext
ABCDEFGHIJKLMNOPQRSTUVWXYZ
Ciphertext
XYZABCDEFGHIJKLMNOPQRSTUVW
Ignore case
Off
Read a shifted alphabet: DEPLOY AT NOON

Read a shifted alphabet: DEPLOY AT NOON. The input is a small public learning fixture; it contains no private production data.

Input

DEPLOY AT NOON

Expected answer

ABMILV XQ KLLK
Plaintext
ABCDEFGHIJKLMNOPQRSTUVWXYZ
Ciphertext
XYZABCDEFGHIJKLMNOPQRSTUVW
Ignore case
Off
Read a shifted alphabet: JSON API

Read a shifted alphabet: JSON API. The input is a small public learning fixture; it contains no private production data.

Input

JSON API

Expected answer

GPLK XMF
Plaintext
ABCDEFGHIJKLMNOPQRSTUVWXYZ
Ciphertext
XYZABCDEFGHIJKLMNOPQRSTUVW
Ignore case
Off
Read a shifted alphabet: ALPHA BETA

Read a shifted alphabet: ALPHA BETA. The input is a small public learning fixture; it contains no private production data.

Input

ALPHA BETA

Expected answer

XIMEX YBQX
Plaintext
ABCDEFGHIJKLMNOPQRSTUVWXYZ
Ciphertext
XYZABCDEFGHIJKLMNOPQRSTUVW
Ignore case
Off
Read a shifted alphabet: RELEASE READY

Read a shifted alphabet: RELEASE READY. The input is a small public learning fixture; it contains no private production data.

Input

RELEASE READY

Expected answer

OBIBXPB OBXAV
Plaintext
ABCDEFGHIJKLMNOPQRSTUVWXYZ
Ciphertext
XYZABCDEFGHIJKLMNOPQRSTUVW
Ignore case
Off
no pt/ct

Input

flee at once. we are discovered!

Expected answer

flee at once. we are discovered!
Plaintext
(empty)
Ciphertext
(empty)
Ignore case
Off
normal

Input

flee at once. we are discovered!

Expected answer

siaa zq lkba. va zoa rfpbluaoar!
Plaintext
abcdefghijklmnopqrstuvwxyz
Ciphertext
zebrascdfghijklmnopqtuvwxy
Ignore case
Off
uneven pt/ct

Input

flee at once. we are discovered!

Expected answer

Warning: Plaintext and Ciphertext lengths differ

siaa zq lkba. va zoa rfpbluaoar!
Plaintext
abcdefghijklmnopqrstuvwxyz
Ciphertext
zebrascdfghijklmnopqtuvwx
Ignore case
Off

Enter the bytes you want to replace in the Plaintext field and the bytes to replace them with in the Ciphertext field. Non-printable bytes can be specified using string escape notation. For example, a line feed character can be written as either \n or \x0a. Byte ranges can be specified using a hyphen. For example, the sequence 0123456789 can be written as 0-9. Note that blackslash characters are used to escape special characters, so will need to be escaped themselves if you want to use them on their own (e.g.\\).

Format reference: Substitute background and specification

Related tools

Browse encryption / encoding tools