Afficher la liste déroulante

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);
?>
Résultat
$string = 'X'
$hex = '85d81058df191cd3'
Erreur : Function mcrypt_create_iv() is deprecated
Exemples
#1 mcrypt_create_iv  (8)
Voir aussi
bin2hex, random_bytes