salsaBoxEncrypt static method
NaCl crypto_box_easy detached encrypt quick call, routed through the
active backend. Explicit 24-byte nonce; returns TAG || CIPHERTEXT.
Implementation
static BuBytes salsaBoxEncrypt({
required List<int> peerPublicKey,
required List<int> secretKey,
required List<int> nonce,
required List<int> plainText,
}) {
return blockchainUtils.api.aed.salsaBoxEncrypt(
nonce,
plainText,
peerPublicKey: peerPublicKey,
secretKey: secretKey,
);
}