seal() Function
Seals a string
Signature
export declare function seal(str: string, publicKey: string): string;Parameters
| Parameter | Type | Description |
|---|---|---|
| str | string | Text to seal |
| publicKey | string | NaCl public key of the recipient |
| (Returns) | string | The sealed text, which can be embedded in a message |