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.
Recognized Compact JWE Header Parameters, any other Header Members may also be present.
• alg: string
JWE "alg" (Algorithm) Header Parameter.
• enc: string
JWE "enc" (Encryption Algorithm) Header Parameter.
• Optional
crit: string
[]
JWE "crit" (Critical) Header Parameter.
• Optional
cty: string
"cty" (Content Type) Header Parameter.
• Optional
jku: string
"jku" (JWK Set URL) Header Parameter.
• Optional
jwk: Pick
<JWK
, "x"
| "y"
| "crv"
| "e"
| "kty"
| "n"
>
"jwk" (JSON Web Key) Header Parameter.
• Optional
kid: string
"kid" (Key ID) Header Parameter.
• Optional
typ: string
"typ" (Type) Header Parameter.
• Optional
x5c: string
[]
"x5c" (X.509 Certificate Chain) Header Parameter.
• Optional
x5t: string
"x5t" (X.509 Certificate SHA-1 Thumbprint) Header Parameter.
• Optional
x5u: string
"x5u" (X.509 URL) Header Parameter.
• Optional
zip: string
JWE "zip" (Compression Algorithm) Header Parameter. This parameter is not supported anymore.
Deprecated
Compression of data SHOULD NOT be done before encryption, because such compressed data often reveals information about the plaintext.
See