## One-Time Pad

The One-Time Pad is the only only encryption algorithm that is impossible to crack! To use this cipher you must have a random selection of letters that can repeat themselves. In this this will be my one-time pad "vonwiegoiqpwidd." To encode a message you have to follow these steps...

Add the first letter of your message to the first letter of the pad. For example if "Z" is the first letter in your message and "V" is the first letter on your pad add "26" and "22" because "Z" is the 1st letter in the alphabet and "V" is the 22nd. You should end up with 48.

Now subtract 1 from 48. Now you have 47.

Since there is not 47 letters in the alphabet you subtract 26 from 47. Subtract 26 from any number that comes out over 26. Now you have 21.

The 21st letter in the alphabet is "U" so that is the fist encrypted letter in your message.

Using this selection of letters "best codes" will become "WSFPKSIJA"

To decode the message you need the same random selection of letters that the message was written with.

All you need to do now is the exact thing you do to encode is but you subtract in all of the areas where you add and you add in all of the areas that you would normally subtract.

For example if the first letter of the pad was "V" and the first letter of the message was "U" you would subtract 22 from 21 so you would end up with -1.

Now add one so you have 0. Since there is no 0 in the alphabet you add 26. Add 26 to any number less than 1. The 26th letter in the alphabet is "Z" so the first letter of the decoded message is "Z"

The message "WSFPKSIJA" would become "best codes"

Its important to remember to make an entirely new pad every time you write a message or else that runs the purpose of the unbreakable cipher.

Add the first letter of your message to the first letter of the pad. For example if "Z" is the first letter in your message and "V" is the first letter on your pad add "26" and "22" because "Z" is the 1st letter in the alphabet and "V" is the 22nd. You should end up with 48.

Now subtract 1 from 48. Now you have 47.

Since there is not 47 letters in the alphabet you subtract 26 from 47. Subtract 26 from any number that comes out over 26. Now you have 21.

The 21st letter in the alphabet is "U" so that is the fist encrypted letter in your message.

Using this selection of letters "best codes" will become "WSFPKSIJA"

To decode the message you need the same random selection of letters that the message was written with.

All you need to do now is the exact thing you do to encode is but you subtract in all of the areas where you add and you add in all of the areas that you would normally subtract.

For example if the first letter of the pad was "V" and the first letter of the message was "U" you would subtract 22 from 21 so you would end up with -1.

Now add one so you have 0. Since there is no 0 in the alphabet you add 26. Add 26 to any number less than 1. The 26th letter in the alphabet is "Z" so the first letter of the decoded message is "Z"

The message "WSFPKSIJA" would become "best codes"

Its important to remember to make an entirely new pad every time you write a message or else that runs the purpose of the unbreakable cipher.