FW: Re: gpg --gen-key using /dev/urandom is possible?

Atom 'Smasher' atom at suspicious.org
Wed Jun 30 05:04:02 CEST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 29 Jun 2004, Jaime [iso-8859-1] Suárez wrote:

>> the output from my /dev/random increased tremendously after following that
>> how-to... no more waiting for entropy... i had a script generate a
>> thousand keys (4096!), and not a single one had to wait for system
>> entropy.
>
> ¿Could you please post the script? ¿Any link about estimating entropy?
> Thanks.
==================

MD5 (gen-key-batch.gz) = 4409429759af233af7b27fb94b1e1c1e

the script is *crude* and lacking comments, but attached. it writes each 
key-pair to it's own public/private files, using the current date/time as 
a prefix: if it generates keys faster than 1/second, files will get 
clobbered, using the current naming convention.

as is, it generates a sign+encrypt RSA primary key with NO subkeys, and a 
finite life. read the docs and you'll see how to generate a more common 
DSA/ElGamal key.

if you want to generate 20 keys (all with the same UID) just run:
 	$ ./gen-key-batch 20

there a section (Unattended key generation) in doc/gnupg/DETAILS that goes 
into the the options and how to set them.


         ...atom

  _________________________________________
  PGP key - http://atom.smasher.org/pgp.txt
  762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
  -------------------------------------------------

 	"Capitalism is the astounding belief that the most wickedest
 	 of men will do the most wickedest of things for the greatest
 	 good of everyone."
 		-- John Maynard Keynes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.3.6 (FreeBSD)
Comment: What is this gibberish?
Comment: http://atom.smasher.org/links/#digital_signatures

iEYEARECAAYFAkDiLawACgkQnCgLvz19QePvQACghkGXztpDz1qeWBc422euAGZ2
0VQAn2uM3DH3F/P8w1AV4okmsp+CjjHy
=PTD6
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gen-key-batch.gz
Type: application/octet-stream
Size: 386 bytes
Desc: 
Url : /pipermail/attachments/20040629/a3284c41/gen-key-batch.exe


More information about the Gnupg-users mailing list