Which way of additionally feeding /dev/random entropy pool would you suggest for producing random passwords? Or, is there maybe a better way to locally create fully random passwords?
|
|
||||
|
|
|
You can feed it with white noise from your sound chip, if present. See this article: http://www.linuxfromscratch.org/hints/downloads/files/entropy.txt |
|||||||||||||||
|
|
You should use
So you want to use Now you may want to worry about entropy if you are writing the Linux installer. The trick is that The operating system itself, and more precisely the kernel, is at the right place to gather entropy from hardware event, since it handles the hardware. So there is relatively little that you can use for entropy that the kernel does not already use. One of those remaining sources is Webcam data: a webcam, even facing a blank wall, will output data with thermal noise, and since it outputs lots of data, it is a good entropy gatherer. So just grab a few frames from the webcam, hash them with a secure hash function (SHA-256), and write that into |
|||||
|
|
1) You don't need to add any more entropy to /dev/random, to use it for passwords. The system already does that for you. 2) To generate a random password, it's better to use /dev/urandom, not /dev/random. (/dev/random has some issues: it blocks, it depletes the entropy pool in a way that may cause other users of /dev/random to block. /dev/urandom is the better general-purpose interface.) 3) Here's a simple script I use to generate a random password. You're welcome to use it.
|
|||||||||
|
|
The best value I've seen in a HW randomness device is the simtec entropy key. |
|||||
|
|
I know of audio entropy daemon and havege which is used by haveged daemon, try them out. |
|||||||||||||
|
|
GUChaos.c retrieves random numbers from random.org, and changes them on-the-fly through a substitution cypher before feeding /dev/random. |
||||
|
|
|
You can use random.org's api and use the number to create passwords. |
|||||
|
|
Passwords, if they are short, are always crackable by brute force if the speed or count of tries is not limited. If, on the other hand, tries are limited (eg. interactive login), even a small amount of entropy basically uncrackable - the amount of tries required becomes prohibitive really soon. So, there should be no cases where getting really good entropy for passwords would matter. So just use /dev/urandom, it's more than good enough. The other answers given here are good comments on how to keep your /dev/random supplied with enough entropy, though, if you need it. |
|||||
|

