IN THE STORY
Inside the copied archive, Adrian finds a text-friendly representation of a note. All required data is included below.
The idea
import makes a library available. Base64 represents bytes using text characters; it does not keep them secret. The library returns bytes, so decode("utf-8") turns them into text. validate=True asks the helper to reject invalid Base64 characters.
Your mission
Decode the value held in encoded and display its text.
Replace ____ with the missing expression, then choose Run code. Match the expected output before trying your own changes.
Before you run it
Is a message private simply because you cannot read its encoded form at a glance?
A little help?
Hint 1: a nudge
Keep the variable encoded and the supplied validation setting.
Hint 2: a closer look
Call base64.b64decode(encoded, validate=True).
How the answer works
The decoded text is Meet Leonard. Both the encoded input and its expected result are provided, so you can check each step.
This replaces the code in the editor. Save your version first if you want to keep it.
Make it yours
Encode a short invented message with base64.b64encode(b"Hello"). Decode it again.