Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.
▸ addRecipient(...args
): Recipient
A shorthand for calling addRecipient() on the enclosing GeneralEncrypt instance
Parameter | Type |
---|---|
...args |
[Uint8Array | KeyLike , CritOption ] |
▸ done(): GeneralEncrypt
Returns the enclosing GeneralEncrypt
▸ encrypt(...args
): Promise
<GeneralJWE
>
A shorthand for calling encrypt() on the enclosing GeneralEncrypt instance
Parameter | Type |
---|---|
...args |
[] |
▸ setUnprotectedHeader(unprotectedHeader
): Recipient
Sets the JWE Per-Recipient Unprotected Header on the Recipient object.
Parameter | Type | Description |
---|---|---|
unprotectedHeader |
JWEHeaderParameters |
JWE Per-Recipient Unprotected Header. |