STEP 15: Let's verify that our encryption function actually worked by testing it.

  • Run the program and enter a new message and key. Write down the key you use! (example: 5)
  • Look at the stage and write down the encrypted message that you see.
  • Run the program again. This time enter the encrypted message that you wrote down.
  • For the key, enter the negative of the key you wrote down (example: -5). What are the results?

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)