Path 04: Programming & Python — KashSec Academy

Programming from zero, then Python — build a real password-strength tool. 22 free lessons, beginner level, starting with "What is programming?"

Level: Beginner · 22 lessons · Free, no account needed.

Your learning route

Write small, reliable security automation scripts.

Follow these stages, or open any lesson below. Nothing is locked.

  1. 1
    Stage 1

    Learn the logic

    Use values, collections, decisions, and loops.

    Lessons 1–6Start stage 1 →
  2. 2
    Stage 2

    Build useful functions

    Read files and split code into reusable pieces.

    Lessons 7–12Start stage 2 →
  3. 3
    Stage 3

    Write safer code

    Check input and handle errors deliberately.

    Lessons 13–16Start stage 3 →
  4. 4
    Stage 4

    Automate and explain

    Use APIs and produce a script someone else can run.

    Lessons 17–22Start stage 4 →

Build evidence

A documented script with error handling and tests.

Certification options for this path

Optional goals for different roles. These lessons cover selected foundations, not a complete exam syllabus.

A programming certificate is optional and is not a cybersecurity qualification.

Python Institute · Entry

PCEP — Certified Entry-Level Python Programmer

Optional evidence of Python basics; a tested script is the priority for this path.

Before you book: Write and debug your own small programs first. This is a programming credential, not a security specialization.

Knowledge exam; see current provider guide

Official requirements and preparation ↗

Provider information checked 2026-10-28. Check the current rules before booking.

Lessons in this path

  1. What is programming? — Recipes for computers, in plain English.
  2. Variables & data types — Labelled boxes: strings, numbers, booleans.
  3. Dictionaries & sets — Labelled data, and automatic uniqueness for things like log IPs.
  4. Decisions with if/else — The logic behind every login check.
  5. Loops: repeat things — How tools try 10,000 passwords in seconds.
  6. Error handling & exceptions — try/except, and why a real scanner can't crash on the first timeout.
  7. Why Python for security — Readable, ubiquitous, batteries included.
  8. Your first Python program — Print, input, comments — the write-save-run cycle.
  9. String manipulation & regex — f-strings, and pattern matching for log analysis and input validation.
  10. Lists & functions — Wordlists and reusable code blocks.
  11. Working with files in Python — Reading wordlists, parsing logs, and writing results safely.
  12. Python modules & packages — pip, virtual environments, and organizing your own growing scripts.
  13. Build a password checker — Combine everything into a real tool.
  14. Object-oriented Python basics — Classes, objects, and why real tools bundle data with behavior.
  15. Writing Secure Python Code — eval(), shell=True, hardcoded secrets, and unsafe pickle.
  16. Where to go next — requests, socket, hashlib — and a mini port checker.
  17. Python, requests & APIs — GET/POST, JSON, headers, and a realistic header-checking script.
  18. Python for network scripting — Sockets, a simple port scanner, and DNS lookups from code.
  19. Python Security Libraries: An Overview — hashlib, bcrypt, scapy, Beautiful Soup, and paramiko, named and mapped.
  20. Automation for Security — Why scripting and automation are essential in security.
  21. Python Careers & Next Steps — Why Python fluency is assumed, and how to build a real portfolio.
  22. Security Scripting Lab — Turn Python into a real security tool.