Question: Make Secret Codes (Elementary Cryptography)

Maple is amazing at making secret codes.

First, let's learn two quick words. To "encrypt" a message means that you have transformed your message such that it is unreadable by others.

And to "decrypt" means to transform it back to your original message, also known as code breaking.

We will encrypt and decrypt our original message "Hello new Maple users !". So in Maple, define your message:

 message:=

Let's encrypt our message to bytes and call our secret code "encrypted_message" :

encrypted_message := convert(message, bytes);

 The above command will produce the encypted message:

encrypted_message := [72, 101, 108, 108, 111, 32, 110, 101, 119, 32, 77, 97, 112, 108, 101, 32, 117, 115, 101, 114, 115, 32, 33]

 We've just made our message into a numerical secret code that is unreadable by others! Let's decrypt it so we can get our original message back.

decrypted_message := convert(encrypted_message, bytes);

Which gives us back our original message:

decrypted_message :=

We've just been introduced to the field of cryptography.

 

Please Wait...