Dice Roll Cipher


The dice roll cipher is a cipher I created based on the Caeser Cipher.

The encoding requires a dice roll, to make the encrypted message.

I will walk you through the process!

Encoding

To encode you will need a die and a message you want to encode.

For example,

We will use the message:

Hello World

First, put a random letter between each letter and word.

It should look something like this:

HAEYLHLROUWPOQRBLKD

Now split the plaintext into groups of two:

HA EY LH LR OU WP OQ RB LK D

If there is a missing pair then add a random letter to it:

HA EY LH LR OU WP OQ RB LK DY

Now, randomly switch the letters inside the pairs:

AH EY HL LR UO PW OQ BR LK YD

Now, roll a die to get a random number between one and six until you get one for each letter in the plaintext.

It should look something like this:

62 21 41 13 11 45 15 44 66 51

Place them side by side:

AH EY HL LR UO PW OQ BR LK YD

62 21 41 13 11 45 15 44 66 51

Apply a Caeser Cipher shift according to the letters below the plaintext.

Here is an alphabet to help you visualize it a bit better.

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z


For example:

B = A Shifted 1

D = Y Shifted 5

You should get:

GJ GZ LM MU VP TB PV FV RQ DE

Now, squish back together the message and the key:

GJGZLMMUVPTBPVFVRQDE

62214113114515446651

That is your key and your encoded message!

Now, how do we decode the message?

Decoding

To decode, we must have the key and the encoded message.

GJGZLMMUVPTBPVFVRQDE

62214113114515446651

Split the encoded message and the key into pairs.

GJ GZ LM MU VP TB PV FV RQ DE

62 21 41 13 11 45 15 44 66 51

Now, perform a reverse caesar cipher shift on the pairs of letters in the encoded message based on the numbers in the key pairs.

For example:

A = C Shifted -2

Y = D Shifted -5

You should get:

AH EY HL LR UO PW OQ BR LK YD

Now use the process of elimination to guess which letter of the encoded message pairs are real or fake.

Once you rule out the fake letters, remove them to get the flag!

HELLOWORLD

The flag has no spaces or punctuation!

Now that you know how to solve a dice roll cipher, go and tackle some of the challenges!

Happy decoding!