(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_stream_xor — Encrypt a message without authentication
$message, string $nonce, #[\SensitiveParameter] string $key): stringThis function encrypts a message with XSalsa20, but does not provide any ciphertext guarantees about the plaintext.
messagenoncekeyEncrypted message.