Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Raspberry Pi for Secret Agents - Third Edition

You're reading from  Raspberry Pi for Secret Agents - Third Edition

Product type Book
Published in Jul 2016
Publisher
ISBN-13 9781786463548
Pages 316 pages
Edition 3rd Edition
Languages

Table of Contents (7) Chapters

Preface 1. Getting up to No Good 2. Audio Antics 3. Webcam and Video Wizardry 4. Wi-Fi Pranks – Exploring Your Network 5. Taking Your Pi Off-Road 6. Detecting and Protecting Against Your Enemies

Better security with a true random number generator


We looked at encryption in the section Keeping your conversations secret with encryption in Chapter 4, Wi-Fi Pranks - Exploring Your Network; however, the key to secure cryptography is entropy—a high-quality source of randomness.

Most random numbers used in computer programs are pseudo-random, which means they are generated in a predictable manner using mathematics. In many circumstances this is fine, but for strong cryptography, this is may not be suitable, even with a good random seed, so we need a True Random Number Generator (TRNG).

Usually, this requires expensive hardware, or weird physical events such as noise analysis to generate random number using a high level of entropy. But did you know that your Raspberry Pi—including the Pi Zero—also contains a hardware-based TRNG?

Kernel entropy pool

In the Linux environment, the root of all randomness is something called the kernel entropy pool. This is a 4,096-bit secret number stored in...

lock icon The rest of the chapter is locked
arrow left Previous Chapter
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}