Mostrar el cuadro 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 = 'kwaA^'
$hex = '6b77cc6141fa5ec6'
Error : Function mcrypt_create_iv() is deprecated
Ejemplos
#1 mcrypt_create_iv  (8)
Ver también
bin2hex, random_bytes