Use sodium_bin2hex() instead of duplicating the same code everywhere.