joined:June 18, 2010
I am being requested to generate an initialization vector in hex code (16 characters) and I am unsure of a few things; I'm using this code to generate and echo the IV:
$size = mcrypt_get_iv_size(MCRYPT_CAST_256, MCRYPT_MODE_CFB);
$iv = mcrypt_create_iv($size, MCRYPT_DEV_RANDOM);
But what I get looks like this:
1. Is it supposed to be displayed with those unusual characters?
2. If yes to question #1 and that's how its supposed to be, there are 15 characters there, how can I make it 16 characters long?
I got caught in a complete new topic here, any help will be greatly welcome,
EDIT: When displayed in this forum it looks different than what I get in my page.