~/talk

Best Practices for Cryptography In Python

Talkat PyCon AU 2019 · 2019-08-02..08-06· [security, python]
links:none on file
slides:none on file

Secure cryptography is possible in Python but only with tradeoffs: built-in pow() and big ints leak timing and memory, Python lacks direct control of caches and mlock, and pure Python exponentiation is vulnerable to timing attacks. Recommended approach is calling native libs via cffi or wheels to use OpenSSL/libsodium for constant‑time ops and AES hardware, using bytearray buffers and a context manager to autozero them; RSA e is commonly 65536 and pure‑Python crypto runs five or six orders of magnitude slower.

AI-written summary · about

  1. 0:00Start
  2. 1:25Agenda
  3. 2:35What Cryptography Is
  4. 4:40The Scope
  5. 5:17Implementing Cryptographic Algorithms
  6. 8:30An Illustrative Example
  7. 20:46Let's ask a scientician
  8. 21:03Establish what matters
  9. 26:04Secure cryptography is possible in Python
  10. 26:32References/Links
~/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.