ドロップダウンリストを表示

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);
?>
結果
$string = '
O`j'
$hex = 'c60a4fbbb260b36a'
エラー : Function mcrypt_create_iv() is deprecated
#1 mcrypt_create_iv  (8)
参照
bin2hex, random_bytes