Lion Cipher Lab

Your first Python script for security

Why it matters

The single most useful thing a beginner can learn about code is not a language — it's the realization that a short script can do a real, repetitive security task for you, correctly, every time, in seconds. Checking a file's hash, scanning a folder, reformatting a log: these are the small chores that fill a security worker's day, and each one is a few lines of Python away from being automatic. You are not trying to become a software developer here. You're picking up automation literacy: enough to read a script, understand it, run it, and change it — which is exactly what turns "I should learn…

What you'll learn

Steps in this lab

  1. The whole idea: a few readable lines can do a security chore for you
  2. Confirm Python is on your machine — or install it
  3. Two ways to run Python — a quick prompt, and a saved script
  4. Write the script — a SHA-256 file hasher in nine lines
  5. Run it, and read every line
  6. What you just proved — and where to point this next

Open the full interactive lab →