Security foundation

Mã hóa, hashing, Fernet, AES và RSA

Chọn primitive theo security goal: confidentiality, integrity, authenticity, password verification hay digital signature; hiểu key, nonce, salt và failure mode trước khi gọi API.

Thuật ngữ: hash không phải “mã hóa một chiều” vì không có thao tác decrypt. Fernet là authenticated symmetric encryption recipe; dữ liệu giải mã được khi có secret key.
Mental model

8 chương

Encoding, hash/MAC, password hashing, AES/Fernet, RSA/signature và key lifecycle.

Interview

28 câu hỏi

Reasoning, trade-off và lỗi production.

Executable

8 labs

Hash, password KDF, AES-GCM, Fernet, RSA-OAEP/PSS và rotation.

Review

Checklist

Primitive selection, key management và evidence.