This section contains the generic implementation of RFC7516. Find how to use it in JWE Guide.
authlib.jose.rfc7516.
JWE
¶alias of authlib.jose.rfc7516.jwe.JsonWebEncryption
authlib.jose.rfc7516.
JWEAlgorithm
¶Interface for JWE algorithm. JWA specification (RFC7518) SHOULD implement the algorithms for JWE with this base implementation.
authlib.jose.rfc7516.
JWEEncAlgorithm
¶encrypt
(msg, aad, iv, key)¶Encrypt the given “msg” text.
Parameters: |
|
---|---|
Returns: | (ciphertext, iv, tag) |
decrypt
(ciphertext, aad, iv, tag, key)¶Decrypt the given cipher text.
Parameters: |
|
---|---|
Returns: | message |
authlib.jose.rfc7516.
JWEZipAlgorithm
¶