PHP 8.4.0 Alpha 2 available for testing


(PHP 7 >= 7.2.0, PHP 8)

sodium_bin2hexEncode to hexadecimal


sodium_bin2hex(#[\SensitiveParameter] string $string): string

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).

Liste de paramètres


Raw binary string.

Valeurs de retour

Hex encoded string.

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top