Demo of one-time pad encryption

Here's a demonstration of an algorithm to encrypt a message using a one-time pad. All of the steps in the process are spelled out below.

The decoding process is exactly the same, except you will *subtract* the pad from your input string instead of adding it!

Step 0: Convert both input strings to uppercase*
Step 1: Convert message text to ASCII values
Step 2: Shift down to 0-25 range (subtract 65, which is the ASCII code for 'A')
Step 3: Convert one-time pad text to ASCII values
Step 4: Shift down to 0-25 range
Step 5: Add message text and pad values (or subtract, if decoding)
Step 6: Mod 26 all values
Step 7: Shift back up to ASCII alphabetic range (add 65)
Step 8: Convert ASCII values back to characters
Final Result:
*This is done in variable declaration, so not part of the function "body" per se