0% found this document useful (0 votes)
261 views1 page

Caesar Cipher (Shift) - Online Decoder, Encoder, Solver, Translator

The document provides information about the Caesar cipher, including how to encrypt and decrypt messages using the cipher, variants of the cipher, and its history. It describes the cipher as replacing each letter in a message with another letter a fixed number of positions down the alphabet. It also provides examples of encrypting and decrypting messages with a shift of 3 letters.

Uploaded by

Carter Sneed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
261 views1 page

Caesar Cipher (Shift) - Online Decoder, Encoder, Solver, Translator

The document provides information about the Caesar cipher, including how to encrypt and decrypt messages using the cipher, variants of the cipher, and its history. It describes the cipher as replacing each letter in a message with another letter a fixed number of positions down the alphabet. It also provides examples of encrypting and decrypting messages with a shift of 3 letters.

Uploaded by

Carter Sneed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

SEARCH A TOOL ON DCODE BY KEYWORDS:

e.g. type 'sudoku' ⏎

BROWSE THE FULL DCODE TOOLS' LIST

CAESAR CIPHER
Add Caesar Cipher to your mobile apps!

Results
Error ! Sorry :(
Caesar Code plain text

empty / invalid

Save up to 90% on Temu


Temu

Summary
Caesar Cipher Decoder

Caesar Encoder
What is the Caesar cipher? (Definition)
How to encrypt using Caesar cipher?
How to decrypt Caesar cipher?
How to recognize Caesar ciphertext?
How to decipher Caesar without knowing the shift?
What are the variants of the Caesar cipher?
How to encrypt digits and numbers using Caesar
cipher?
Why the name Caesar Cipher?
What is August Cipher?
What are other Caesar Cipher names?
How to cipher CAESAR with the Caesar code?
How to write Caesar Cipher in pseudo-code?
When Caesar Cipher was invented?

TheVolvoXC60Mild-Hybrid
Iconicdesigninsideandout
CAESAR CIPHER DECODER ↺
CAESAR SHIFTED CIPHERTEXT ?

gFrgh Fdhvdu

Test all possible shifts (26-letter alphabet A-Z)

DECRYPT (BRUTEFORCE)

MANUAL DECRYPTION AND PARAMETERS

SHIFT/KEY (NUMBER): 3
USE THE ENGLISH ALPHABET (26 LETTERS FROM A TO Z)

USE THE ENGLISH ALPHABET AND ALSO SHIFT THE DIGITS 0-9

USE THE LATIN ALPHABET IN THE TIME OF CAESAR (23 LETTERS, NO

J, U OR W)
USE THE ASCII TABLE (0-127) AS ALPHABET

USE A CUSTOM ALPHABET (A-Z0-9 CHARS ONLY)

0123456789ABCDEFGHIJKLMNOPQRSTUV…

DECRYPT

See also: ROT Cipher — Shift Cipher

CAESAR ENCODER ↺
CAESAR CODE PLAIN TEXT ?

SHIFT/KEY (NUMBER): 3
USE THE ENGLISH ALPHABET (26 LETTERS FROM A TO Z)

USE THE ENGLISH ALPHABET AND ALSO SHIFT THE DIGITS 0-9

USE THE LATIN ALPHABET IN THE TIME OF CAESAR (23 LETTERS, NO

J, U OR W)
USE THE ASCII TABLE (0-127) AS ALPHABET

USE A CUSTOM ALPHABET (A-Z0-9 CHARS ONLY)

0123456789ABCDEFGHIJKLMNOPQRSTUV…

ENCRYPT

See also: ROT Cipher — Roman Numerals Conversion —


Vigenere Cipher

Replay

Answers to Questions (FAQ)


What is the Caesar cipher? (Definition)
The Caesar cipher (or Caesar code) is a
monoalphabetic substitution cipher, where each letter
is replaced by another letter located a little further in
the alphabet (therefore shifted but always the same for
given cipher message). The shift distance is chosen by a
number called the offset, which can be right (A to B) or
left (B to A).
How to encrypt using Caesar cipher?
Encryption with Caesar code is based on an alphabet
shift. The most commonly used shift/offset is by 3
letters.
Plain Alphabet ABCDEFGHIJKLMNOPQRSTUVWXYZ
Caesar Alphabet
DEFGHIJKLMNOPQRSTUVWXYZABC
( 3)

Example: Crypt DCODEX with a shift of 3 .


To encrypt D , take the alphabet and look 3 letters
after: G . So D is encrypted with G .
To encrypt X , loop the alphabet: after X : Y , after Y
: Z , after Z : A . So X is coded A .
DCODEX is coded GFRGHA

Another way to crypt, more mathematical, note A=0 ,


B=1 , …, Z=25 , and add a constant (the shift), then the
result modulo 26 (alphabet length) is the coded text.
Example: To crypt D (of value 3 ), add the shift 3 :
3+3=6 and find the letter for 6 : 6=G , so D is
crypted with G .
To encrypt X=23 , 23+3=26 and 26 mod 26 = 0 , 0=
A , so X is encrypted with A , etc.
DCODEX is coded GFRGHA

How to decrypt Caesar cipher?


Caesar code decryption replaces a letter another with
an inverse alphabet shift: a previous letter in the
alphabet.
Example: Decrypt GFRGHA with a shift of 3.
To decrypt G , take the alphabet and look 3 letters
before: D . So G is decrypted with D .
To decrypt X , loop the alphabet: before A : Z , before
Z : Y , before Y : X . So A is decrypted X .
GFRGHA is decrypted DCODEX .

Another way to decrypt, more mathematical, note A=


0 , B=1 , …, Z=25 , subtracts a constant (the shift), then
the result modulo 26 (alphabet length) is the plain text.
Example: Take G=6 , subtract the shift 6-3=3 and
3=D , so G is decrypted with D
Take A=0 , 0-3=-3 and -3 mod 26 = 23 , 23=X , so
A is decrypted with X , etc.
GFRGHA is decrypted DCODEX

How to recognize Caesar ciphertext?


A message encoded with the Caesar cipher has a shift
in its frequency analysis diagram (equal to the selected
shift) and a coincidence index similar to the one of the
plain text.
Any reference to Caesar, emperor of Rome, or more
generally to antiquity and the Roman Empire are clues.
Also, the presence of keywords like Julius
(Iulius/Ivlivs), Brutus, Augustus, or a(Caesar) salad can
remind us of the Caesar imperator.
How to decipher Caesar without knowing
the shift?
The easiest keyless/shiftless method consists of testing
all shifts, if the alphabet has 26 letters, it takes only 25
tries (dCode does it automatically).
What are the variants of the Caesar cipher?
Caesar cipher is best known with a shift of 3, all other
shifts are possible. Some shifts are known with other
cipher names.
Another variant changes the alphabet and introduces
digits for example.
A Caesar cipher with an offset of N corresponds to an
Affine cipher Ax+B with A=1 and B=N .
Caesar is sometimes written Cesar (in French) ou
Ceaser (bad typography).
How to encrypt digits and numbers using
Caesar cipher?
Caesar cipher is applicable only to letters of the
alphabet. There are, however, several solutions to crypt
numbers:
— Write the numbers in Roman numerals, the numbers
becoming letters, it is enough to encode them normally
Example: Nine becomes IX which becomes LA
with a shift of 3.

— Shift the numbers with the same shift as the letters.


Example: 9 becomes 12 (shift of +3)

— Integrate numbers in the alphabet.


Example: With the alphabet ABCDEF123 , 21
becomes BA with an offset of 3.

Why the name Caesar Cipher?


Caesar (Caius Iulius Caesar) used this technique for
some correspondences, especially military, for example
with Cicerone (shift of 3).
What is August Cipher?
August Cipher is sometimes the name given to Caesar
Cipher with a shift of 1.
What are other Caesar Cipher names?
Caesar cipher is also known as Shift Cipher. This
shifting property can be hidden in the name of Caesar
variants, eg.:
CD code, C = D, the shift is 1
Jail (JL) code, J = L, the shift is 2
Ellen (LN) code, L = N, the shift is 2
Cutie (QT) code, Q = T, the shift is 3
Eiffel (FL) code, F = L, the shift is 6
WC code, W = C, the shift is 6
Empty (MT) code, M = T, the shift is 7
Baden Powell (scoutism founder), B = P, the shift is 14
Any (NE) code, N = E, the shift is 17
See You (CU) code, C = U, the shift is 18
I See (IC) code, I = C, the shift is 20
Easy (EZ) code, E = Z, the shift is 21
CEASAR (with a wrong spelling) where E=A or A=E, the
shift is either +4 or -4 (=22)
Any 2-letter code that can give an association between
a crypted char and the plain one (see gramograms)
ROT13 code, the shift is 13 and reversible
ROT5 code for digits, the shift is 5 and reversible
ROT47 code for ASCII printable characters, the shift is
47 and reversible
More generally ROT-N with N the shift, if N < 26 then
the Latin alphabet is used, else it can be any other
custom alphabet.
How to cipher CAESAR with the Caesar
code?
The 25 ways to cipher Caesar by itself: DBFTBS,
ECGUCT, FDHVDU, GEIWEV, HFJXFW, IGKYGX, JHLZHY,
KIMAIZ, LJNBJA, MKOCKB, NLPDLC, OMQEMD, PNRFNE,
QOSGOF, RPTHPG, SQUIQH, TRVJRI, USWKSJ, VTXLTK,
WUYMUL, XVZNVM, YWAOWN, ZXBPXO, AYCQYP, BZDRZQ
How to write Caesar Cipher in pseudo-
code?
For N from 1 to Text Length Do
Take C = Nth character of Text
Calculate R = the rank of C in the alphabet
Calculate R2 = (R + Shift) Modulo 26
Write the letter with rank R2 in the alphabet
End For Loop
When Caesar Cipher was invented?
The code was named after Julius Caesar who was born
in 100 BCE the first man which has testimonies (like
Suetonius) proving that he used this type of substitution
to protect his military communications. The exact date
of creation and its real author are unknown.

ASK A NEW QUESTION

Replay

Summary
Caesar Cipher Decoder

Caesar Encoder

Similar pages
ROT Cipher

Shift Cipher

Vigenere Cipher

Keyboard Shift Cipher

ROT1 Cipher

ROT-13 Cipher

ROT-47 Cipher

DCODE'S TOOLS LIST

Share

Support
Paypal

Patreon

More

Forum/Help

Keywords
caesar, code, shift, rot13, rot, rank, alphabet, ave, iulius,

caius, august, imperator, rome

Source code
dCode retains ownership of the "Caesar Cipher"
source code. Except explicit open source licence
(indicated Creative Commons / free), the "Caesar
Cipher" algorithm, the applet or snippet (converter,
solver, encryption / decryption, encoding / decoding,
ciphering / deciphering, breaker, translator), or the
"Caesar Cipher" functions (calculate, convert, solve,
decrypt / encrypt, decipher / cipher, decode /
encode, translate) written in any informatic language
(Python, Java, PHP, C#, Javascript, Matlab, etc.) and
all data download, script, or API access for "Caesar
Cipher" are not public, same for offline use on PC,
mobile, tablet, iPhone or Android app!
Reminder : dCode is free to use.

Cite dCode
The copy-paste of the page "Caesar Cipher" or any of
its results, is allowed (even for commercial purposes)
as long as you cite dCode!
Exporting results as a .csv or .txt file is free by clicking
on the export icon
Cite as source (bibliography):
Caesar Cipher on dCode.fr [online website], retrieved
on 2023-06-14, https://www.dcode.fr/caesar-cipher

Need Help ?
Please, check our dCode Discord community for
help requests!
NB: for encrypted messages, test our automatic
cipher identifier!

Questions / Comments

WRITE A MESSAGE

Feedback and suggestions are welcome so that


dCode offers the best 'Caesar Cipher' tool for free!
Thank you!

dCode and more


dCode is free and its tools are a valuable help in
games, maths, geocaching, puzzles and problems to
solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to
dCode!

https://www.dcode.fr/caesar-cipher
© 2023 dCode — The ultimate 'toolkit' to solve every games /
riddles / geocaching / CTF. ▲

You might also like