Augment Your Cipherhtml Page So That It Can Both Encode

Augment your cipher.html page so that it can both encode and decode messages. You will need to define a new function named Decode, which decodes the message in the text area using the entered cipher key. You should also add a second button labeled “Decode the message” that calls this new function when it is clicked.
Once you have done this, test the page by decoding the messages you encoded in Exercise 15.13.
As an additional test, decode the following message using the Mystery cipher defined in a previous section:
Egfukqzxsqzogfl – ngx rtegrtr zit dtllqut!

Posted in Uncategorized