显示文本框

mhash_keygen_s2k()

« mhash_get_hash_name | microtime »
<?php
$string 
mhash_keygen_s2k (
    
?// int $hash
    
// string $password
    
// string $salt
    
  // int $bytes
);

// shows the result in hexadecimal
$hex bin2hex($string);
?>
结果
$string = 'ZOә'
$hex = '5a1a8717c74fd399'
示例
#1 mhash_keygen_s2k  (MHASH_MD5,
 
"Hello world!",
 
"a grain of salt",
 
8)
另请参阅
bin2hex, mhash