~/talk

Python bad cryptography habits

Talkat PyCon Israel 2024 · on Monday, 2024-09-16· [cryptography, security, python]
slides:none on file

Covers concrete mistakes and fixes: common teams ship code that uses verify=False in requests to skip TLS validation, accept self signed certs in staging that leak into production, and enable *TLS 1.0/1.1 support which exposes known MITM attacks; recommends certificate pinning by supplying the server cert or key, use cloud KMS instead of embedding keys in env or git, and generate nonces and secrets with Python’s cryptographic RNGs (secrets or cryptography) not time based random. Shows actual library calls and deployment pitfalls and how to change them.

AI-written summary · about

  1. 0:00Introduction
  2. 5:13Python cryptography intro
  3. 8:03What is TLS and how it works
  4. 14:41Self-signed cert problems
  5. 18:18TLS versions and risks
  6. 23:20Environment variables and crypto risks
  7. 26:13Importance of random numbers
  8. 31:14Summary and recommendations
  9. 31:40Q&A
~/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.