gel-jwt 0.1.4

JWT implementation for the Gel database.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# JWT support

This crate provides support for JWT tokens. The JWT signing and verification is done
using the `jsonwebtoken` crate, while the key loading is performed here via the
`pkcs1`/`pkcs8`/`sec1` crates.

## Key types

HS256: symmetric key
RS256: asymmetric key (RSA 2048+ + SHA256)
ES256: asymmetric key (P-256 + SHA256)

## Supported key formats

HS256: raw data
RS256: PKCS1/PKCS8 PEM
ES256: SEC1/PKCS8 PEM