For after the lessons: one card per lesson, to check what you remember. Answer each question in your head or on paper first, then check it. Nothing here is marked.
Try firstYour friend says hex keeps a password safe. What do you tell them, and what should be used instead?
Check your answer
Hex is a public rule anyone can undo; store passwords as salted hashes, and encrypt (with a key) what must be read back.
Encoding (binary, hex, base64) writes data another way by a public rule: anyone can undo it, so it hides nothing.
Encryption needs a secret key: without it, the data can't be read.
Hashing is one-way, for checking passwords.
Test: is there a secret key? If not, it isn't secret.
One message written five ways: plain text, binary, hex, base64 and encrypted with a key word. Eve tries every public decoder on whatever is sent.Who can read it? · Sound on for the voiceoverVoice: Open the lesson →
Try firstName two things a page can give away without showing them, and the fix for one.
Check your answer
Comments, hidden fields, scripts (codes, keys, checks), a photo's location. Fix: delete it or keep it on the server; remove photo details before uploading.
A web page is sent whole to every visitor's browser, so they can read all of it:
comments and hidden fields, though they aren't shown
scripts, including any codes or keys in them; a check in the browser can be skipped
a photo's details, which can include where it was taken
Keep secrets and real checks on the server, and remove photo details before uploading.
The club page as visitors see it, with View source and Photo details: what every visitor's browser receives.What the browser receives · Sound on for the voiceoverVoice: Open the lesson →
Try firstPick one flag: what gave it away, and how should the club fix it?
Check your answer
For example: the hidden field sent the backup value to every visitor; remove it and keep data on the server.
In a capture the flag, you look for what a system gives away (with permission) and each find is a flag. Then you report and fix it.
Encoding (base64, hex) hides nothing.
A page sends its hidden parts to every visitor.
A hidden folder isn't private.
Numbers can be read as text.
A key kept next to its data protects nothing.
The old archive's front page: members only, with a password box. What does its source give away?Start with the page · Sound on for the voiceoverVoice: Open the lesson →