seal static method
Encrypts a message for a recipient using an ephemeral key and a deterministic nonce.
- Throws: An AskarKeyException if encryption fails.
Implementation
static Uint8List seal({required Key recipientKey, required Uint8List message}) {
try {
return askarKeyCryptoBoxSeal(recipientKey.handle, message).getValueOrException();
} catch (e) {
throw AskarKeyException('Error on crypto box seal: $e');
}
}