array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'function.sodium-bin2hex.php', 1 => 'sodium_bin2hex', ), 'up' => array ( 0 => 'ref.sodium.php', 1 => 'Sodium İşlevleri', ), 'prev' => array ( 0 => 'function.sodium-bin2base64.php', 1 => 'sodium_bin2base64', ), 'next' => array ( 0 => 'function.sodium-compare.php', 1 => 'sodium_compare', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/sodium/functions/sodium-bin2hex.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 7 >= 7.2.0, PHP 8)
sodium_bin2hex — Encode to hexadecimal
Converts a raw binary string into a hex-encoded string. Unlike the standard hex-encoding function, sodium_bin2hex() is constant-time (a property that is important for any code that touches cryptographic inputs, such as plaintexts or keys).
string
Raw binary string.
Hex encoded string.