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?
source
share