Linux Format

ENTROPY ISN’T WHAT IT USED TO BE

As a Linux user, if you’ve ever visited a site secured by SSL, securely wiped a drive or digitally signed an email, you’ve made use of the Linux kernel’s built-in RNG (random number generator). It works by collecting entropy (disorder) from various sources, such as hardware RNGs, interrupts and CPU-based ‘jitterentropy’. This entropy is extracted using a secure hash function and used to seed a set of cryptographic random number generators (CRNGs). As long as the kernel’s running, entropy continues to be collected and the CRNGs are therefore reseeded with high-quality random bits. The bits generated by the kernel’s RNG are technically pseudo-random. This is comparable to someone rolling a die many times and writing down the results. Whenever you ask for a die roll number, you get the next on a predetermined list.

Pseudo-random number generators, or PRNGs, are systems that are efficient in reliably producing lots of artificial random bits from a few true random bits. For example, a true RNG that relied on keypresses would stop generating randomness as soon as the user stops using the keyboard. However, a PRNG would use these random bits of initial entropy and then continue producing random numbers.

Any predictability in supposedly random data is bad news for cryptography. The very basis of generating session keys to secure the SSL connection between your browser and a website is that these keys can’t be reverse engineered at a later date. In this guide, you’ll explore the nature of entropy further and discover how Linux still provides one of the best guarantees for securing your data.

In 1984, a 35-year-old former ice cream

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format2 min read
OBS Studio
Version: 30.0.2 Web: https://obsproject.com There are lots of good options for recording screencasts, but if you want to live-stream T your desktop, one of the best options is OBS Studio. The app works with all the major online streaming providers, s
Linux Format1 min read
Wine For Wayland
2023 was a great year for the Wayland driver for Wine. The goal was to move forward from the experimental phase and make the driver a proper upstream component. A year later, after several merge requests, many people are now already able to use the l
Linux Format2 min read
Back Issues Missed One?
ISSUE 313 April 2024 Product code: LXFDB0313 In the magazine Discover how to use the ultimate hacker’s toolkit, staying out of trouble while doing so. And join us as we take the Puppy Linux developer’s new distro for a run and explore its container

Related Books & Audiobooks