~/talk

Mastering Cryptography in Python: Best Practices and Myth-Busting

Talkat PyCon Italia 2024 · 2024-05-22..05-25· [cryptography]
links:none on file
slides:none on file

Shows concrete Python code using the cryptography library to encrypt an image and demonstrates why AES-256 alone is meaningless: ECB preserves image patterns, CBC needs padding and leaks silent corruption after tampering, and GCM provides authenticity but suffers catastrophic failures on GCM nonce reuse (two ciphertexts XOR to reveal data). Recommends using Fernet (one-liner encryption, built-in auth, AES-128/CBC+HMAC) and links a GitHub repo with examples; reports LLM-generated crypto had ~4% success in cited research.

AI-written summary · about

  1. 0:00Introduction and myth busting
  2. 2:21The AES-256 misconception
  3. 5:21Naive block cipher usage
  4. 9:16CBC mode and its limitations
  5. 13:54GCM mode and nonce security
  6. 17:29Best practices for encryption
  7. 24:56Q&A and closing remarks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.