Exibir a caixa de texto

mcrypt_create_iv()

« mb_substr_count | mcrypt_decrypt »
<?php
$string 
mcrypt_create_iv (
    
?// int $size
    
?  // [int $source = MCRYPT_DEV_URANDOM]
);

// shows the result in hexadecimal
$hex bin2hex($string);
?>
resultado
$string = 'X( !
'
$hex = '5828d6170c08210a'
Erro : Function mcrypt_create_iv() is deprecated
Exemplos
#1 mcrypt_create_iv  (8)
Veja também
bin2hex, random_bytes