sodium_bin2base64

Supported Versions: PHP 7 >= 7.2.0, PHP 8
Encodes a raw binary string with base64.
<?php sodium_bin2base64(string $string, int $id): string