encryptEasy

open fun encryptEasy(mySecret: CryptoBoxSecretKey, otherPubkey: CryptoBoxPublicKey, message: Array<Byte>): Array<Byte>

Encrypts message using `my_secret` and `other_pubkey`. The output will have a randomly generated nonce prepended to it. The output will be Overhead + 24 bytes longer than the original.

Return

*nullable* pointer to the encrypted message with randomly generated nonce prepended to it.

Parameters

mySecret

*non-null* pointer to my secret key.

otherPubkey

*non-null* pointer to other's public key.

message

*non-null* pointer to the message to be encrypted.