- var_dump: documentation ( source)
<?php
$my_secret = sodium_hex2bin("da93b1db433cfb2efe490a1bb263e440b586b6167c20b86f14cd058515806940");
$my_public = sodium_crypto_scalarmult_base($my_secret);
$message = sodium_crypto_box_seal("This is a secret", $my_public);
var_dump(sodium_bin2hex($message));
$opened = sodium_crypto_box_seal_open($message, $my_secret . $my_public);
var_dump($opened);