apiref
seald@0.0.1

seal()  Function

Signature

export declare function seal(str: string, publicKey: string): string;

Parameters

ParameterTypeDescription
strstring

Text to seal

publicKeystring

NaCl public key of the recipient

(Returns)string

The sealed text, which can be embedded in a message