|
Answers to Questions
How to encrypt using Caesar cipher?
Plain Alphabet | ABCDEFGHIJKLMNOPQRSTUVWXYZ |
Caesar Alphabet (+3) | DEFGHIJKLMNOPQRSTUVWXYZABC |
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
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?
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.
Take A=0, 0-3=-3 and -3 mod 26 = 23, 23=X, so A is decrypted with X, etc.
GFRGHA is decrypted DCODEX