Encryption Algorithms

The basic parameters for a JOSE::JWE header are:

  • "alg" (required) - Key Management Algorithm used to encrypt or determine the value of the Content Encryption Key.
  • "enc" (required) - Encryption Algorithm used to perform authenticated encryption on the plain text using the Content Encryption Key.
  • "zip" (optional) - Compression Algorithm applied to the plaintext before encryption, if any.

See RFC 7516 for more information about other header parameters.

alg Header Parameter

Here are the supported options for the alg parameter, grouped by similar funcionality:

enc Header Parameter

Here are the options for the enc parameter:

zip Header Parameter

Here are the options for the zip parameter: