Skip to main content

Module jwt

Module jwt 

Source

Structs§

DecodedJweToken
JWE Decoded token data
DecodedToken
JWT Decoded token data
EncodeOptions
Advanced encode options for JWT token
Hs256Verifier
Precomputed material for fast HS256 signature verification.
VerifyOptions
Advanced verification options for JWT token

Enums§

JweContentEncryption
JWE content encryption algorithms supported
JweKeyManagement
JWE key management algorithms supported.
JwtError
Error types for JWT operations
KeyData
Encoding key types for JWT
TokenType
Token type enumeration
VerifyKeyData
Verification key types for JWT

Functions§

decode
Decode a JWT token without verifying its signature
decode_jwe
Decode a JWE token without decrypting its payload
decrypt_jwe
Attempt to decrypt JWE token with a candidate key (for brute forcing)
decrypt_jwe_with_josekit
Decrypt JWE token using josekit (supports all key management algorithms)
detect_jwe_misconfigurations
Detect potential JWE misconfigurations
detect_token_type
Detect the type of token (JWT vs JWE)
encode
Encode JSON claims into a JWT token with default options
encode_jwe
Encode payload as JWE token using josekit
encode_jwe_demoDeprecated
Create a simple JWE token for demonstration purposes
encode_with_options
Encode JSON claims into a JWT token with advanced options
prepare_hs256_verifier
Build an Hs256Verifier from a JWT.
verify
Verify a JWT token with a given secret
verify_with_options
Verify a JWT token with advanced options