~/talk

Randomness in Python: Controlled Chaos in an Ordered Machine

Talkat PyCon 2018 · on Friday, 2018-05-11· [security, python]
slides:none on file

Shows a concrete exploit where user IDs seeded by a restart time give 60,000 possible seeds and allow predicted tokens and impersonation, contrasts the Dual_EC_DRBG backdoor saga (introduced 2004, weakness exposed 2007, Snowden/Bullrun ties in 2013, standard removed after ~10 years), demonstrates the middle‑square method repeating after 62 steps for seed 5859, explains that Python’s Mersenne Twister is non‑cryptographic and that the secrets module uses 32 bytes of entropy and OS sources (/dev/random vs /dev/urandom) for practical safety.

AI-written summary · about

  1. 0:00Intro
  2. 3:29Problems with randomness
  3. 5:33DUAL EC DRBG Controversy
  4. 7:45The Washington Post Man who leaked NSA secrets steps forward
  5. 10:44An ideal pseudo random number generator should...
  6. 13:14Linear congruential generators
  7. 15:23Mid square method generally
  8. 16:54Issues with mid square method
  9. 17:38Let's talk cryptography
  10. 17:51The Mersenne Twister
  11. 20:15Problems with the random module...
  12. 22:05Natural sources of entropy
  13. 22:41Source code of Secrets module
  14. 23:55dev/urandom
  15. 25:07Using the secrets module to get tokens
  16. 25:27Using the secrets module for password generation
  17. 26:13Python's nuclear reactor of Randomness
~/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.