Anonymous Public-key Encryption (Sealed Box)Source:
Create an encrypted message (sealed box) from a curve25519 public key.
message to be encrypted
public key of the receiver
private key of the receiver
Simple public key encryption allows for sending anonymous encrypted messages to a recipient given its public key. Only the recipient can decrypt these messages, using its private key.
While the recipient can verify the integrity of the message, it cannot verify the identity of the sender. For sending authenticated encrypted messages, use auth_encrypt and auth_decrypt.