warming up your workspace

Python Foundations through Cybersecurity

Never written code before? Start here. You will learn the absolute basics of Python, output, variables, types, decisions, loops, and functions, using passwords, hashing, ports, and packets as your playground. By the end you are ready for Project 1.

First words

  1. Your first program: terminal ready
  2. Printing numbers: ports in use
  3. Comments: notes the computer ignores
  4. Strings: build a password label
  5. Arithmetic: how long to crack it?

Remembering things

  1. Variables: remember a password length
  2. Changing a variable: failed attempts
  3. Types: numbers, text, and true or false
  4. Converting types: read a packet size
  5. Good names: a security profile card

Making choices

  1. True or false: is the password long enough?
  2. if: trigger a lockout
  3. if and else: allow or deny
  4. elif: which strength band?
  5. and, or, not: open the gate?

Doing it again

  1. while: login attempt countdown
  2. for: scan a range of ports
  3. Accumulating: total packets received
  4. break: stop after too many failures
  5. Loops in loops: a port-attempt grid

Many values and reuse

  1. Lists: a log of packet sizes
  2. Loop a list: find the highest risk score
  3. Functions: package a hash estimate
  4. Inputs and outputs: check password length
  5. Capstone: a password-strength auditor

Explore the full field