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.
[propName
: string
]: unknown
• 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"
| "kty"
| "crv"
| "e"
| "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.
Compression of data SHOULD NOT be done before encryption, because such compressed data often reveals information about the plaintext.