Is Perl :: UUID data a strong symmetric key source?

I am considering using the Data :: UUID Perl module to generate a 256-bit symmetric key for use with the HMAC_SHA256 algorithm. Each call should give me a unique string of 128 bits, so I'm going to do something like the following:

use Data::UUID;

my $ug = new Data::UUID;

my $uuid1 = $ug->to_hexstring($ug->create());

my $uuid2 = $ug->to_hexstring($ug->create());

my $256_bit_key = $uuid1 . $uuid2;

Is this key cryptographically strong?

+1
source share
1 answer

No.

Use Crypt :: OpenSSL :: Random or another crypto strong random number generator.

, CRNG, ASCII, .

+6

All Articles