sodium_bin2hex

Supported Versions: PHP 7 >= 7.2.0, PHP 8
Encode to hexadecimal
<?php sodium_bin2hex(string $string): string