Skip to main content Accessibility Feedback

The lava lamps that help power SSL encryption

File this one under “crazy stuff I learned this week”: Cloudfare uses streaming images of a wall of lava lamps in their San Francisco office to partially generate the salts in the encryption keys that power their SSL services.

Why? Computers suck at generating random number, and Cloudfare has to create a lot of them.

Lava Lamps are unpredictable. Images of them create tons of tiny variances in the data behind the image (as do things like the lighting conditions in any particular moment), and that data is used to help create randomness in encryption key generation.

Super weird. Super rad.


🚀 Make 2018 the year you master JavaScript! My pocket guides and mini courses are short, focused, and made for beginners. You can do this!

Have any questions or comments about this post? Email me at chris@gomakethings.com or contact me on Twitter at @ChrisFerdinandi.

Get Daily Developer Tips