encrypt method
Encrypts the plaintext message using a random-generated ephemeral keypair and returns a "composed ciphertext", containing both the public part of the keypair and the ciphertext proper, encoded with the encoder.
The private part of the ephemeral key-pair will be scrubbed before returning the ciphertext, therefore, the sender will not be able to decrypt the generated ciphertext.
Implementation
Uint8List encrypt(Uint8List plaintext) {
return _cryptoBoxSeal(plaintext, this);
}