Changeset 42 for keysigning


Ignore:
Timestamp:
Jul 9, 2007, 9:18:47 PM (17 years ago)
Author:
simon
Message:
  • 64 bytes of /dev/random instead of 18 bytes of /dev/urandom (There’s a theoretical advantage, but not really a practical advantage as it should be hard enough to guess 18 bytes of pseudo-random data that it makes little difference, this is just my policy. Should be configurable really.) (Also note that if you are sending lots of challenges, you may well run out of entropy quite soon when using /dev/random)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • keysigning/gpg-challenge.pl

    r41 r42  
    8282        # Get a random string:
    8383        my $challenge;
    84         open ( RANDOM, "head -c 18 /dev/urandom | mimencode|" )
     84        open ( RANDOM, "dd if=/dev/random count=64 bs=1 | mimencode|" )
    8585            || die "Cannot get random string\n";
    8686        while ( <RANDOM> )
Note: See TracChangeset for help on using the changeset viewer.