Python Security for Beginners / Chapter 1 — Getting started (lessons 1–3) / Lesson 1

The ground rules of learning security, and the law

Time needed: about 2 min (estimate)

☆ Read later

You can try the opening of this lesson without an account.

Why Python for security

This course studies security not to attack but to understand the mechanisms and defend.

Python is the companion of choice because the standard library alone provides a full set of tools.

Networking is socket, hashing is hashlib, keyed verification is hmac, and log processing is re.

With nothing extra installed, you can observe the mechanisms directly.

The main libraries used in this course

Standard library socket open and listen for TCP connections lessons 4-6 hashlib SHA-256 and other hashes lesson 11 hmac keyed verification, safe comparison lesson 12 base64 Base64 encoding and decoding lesson 10 re parsing logs lesson 14 onwards ipaddress IP addresses and CIDR testing lesson 17 ssl fetching and verifying certificates lesson 28 Third-party requests HTTP client lesson 7 onwards flask the practice app (the local lab) lesson 19 onwards bcrypt password hashing lesson 12 cryptography symmetric encryption (Fernet) lesson 13

[Most important] What you may and may not do

Create a free account to keep reading

With an account you can read the rest of this lesson, take the quiz, and read every free lesson in this course. Lessons you answer correctly are recorded as complete.

Report a problem with this lesson

Log in to send a report.

Keyboard shortcuts

Keys available in a lesson
KeyAction
[ or Alt + ←Go to the previous lesson
] or Alt + →Go to the next lesson
?Open this list
EscClose this list

The keys do not work while the cursor is in a code editor or an input field.