Encrypt a string using NaCl Box (X25519 + XSalsa20-Poly1305). Compatible with PyNaCl's Box(sender_private, recipient_public).encrypt(msg).
UTF-8 string to encrypt
sender's private key
recipient's public key
base64-encoded encrypted message (nonce + ciphertext)
Encrypt a string using NaCl Box (X25519 + XSalsa20-Poly1305). Compatible with PyNaCl's Box(sender_private, recipient_public).encrypt(msg).