How to Write an Unbreakable Code

Write the message at the top of a piece of paper., Convert it into numbers., Write down the letters of the one-time pad underneath., Convert the key into numbers., Add together the corresponding numbers to get the codetext., For every number over...

10 Steps 1 min read Medium

Step-by-Step Guide

  1. Step 1: Write the message at the top of a piece of paper.

    Our message is hello. , Hello becomes 8 5 12 12
    15. , You only need as many letters as there are in the message.

    Using our one-time pad, these are abgsd.

    This is the key. , The key is now 1 2 7 19
    4. , Add the first letter of the message to the first letter of the key, second to second, etc.

    Our codetext is 9 7 19 31
    19. , Our codetext becomes 9 7 19 5
    19. , Our codetext message is IGSES. , This is why it is a one-time pad: each part is used once.

    If it's written on paper, tear it off and burn it.

    Our one-time pad is now peycnghf. ,
  2. Step 2: Convert it into numbers.

  3. Step 3: Write down the letters of the one-time pad underneath.

  4. Step 4: Convert the key into numbers.

  5. Step 5: Add together the corresponding numbers to get the codetext.

  6. Step 6: For every number over (not equal to) 26

  7. Step 7: subtract 26.

  8. Step 8: Convert back into letters.

  9. Step 9: Destroy the part of the one-time pad that you used.

  10. Step 10: Send the message.

Detailed Guide

Our message is hello. , Hello becomes 8 5 12 12
15. , You only need as many letters as there are in the message.

Using our one-time pad, these are abgsd.

This is the key. , The key is now 1 2 7 19
4. , Add the first letter of the message to the first letter of the key, second to second, etc.

Our codetext is 9 7 19 31
19. , Our codetext becomes 9 7 19 5
19. , Our codetext message is IGSES. , This is why it is a one-time pad: each part is used once.

If it's written on paper, tear it off and burn it.

Our one-time pad is now peycnghf. ,

About the Author

L

Lisa Parker

Experienced content creator specializing in DIY projects guides and tutorials.

70 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: