jwtk

Crates.iojwtk
lib.rsjwtk
version0.3.0
sourcesrc
created_at2021-08-10 15:01:24.368008
updated_at2023-08-21 03:32:38.604066
descriptionJWT signing (JWS) and verification, with first class JWK and JWK Set (JWKS) support.
homepage
repositoryhttps://github.com/sopium/jwtk
max_upload_size
id434304
size130,317
Yin Guanhao (blckngm)

documentation

README

JWT signing (JWS) and verification, with first class JWK and JWK Set (JWKS) support.

Supports almost all JWS algorithms:

  • HS256, HS384, HS512
  • Ed25519
  • ES256, ES384, ES512, ES256K
  • RS256, RS384, RS512
  • PS256, PS384, PS512

Supports exp and nbf validations. (Other validations will not be supported, because they are mostly application specific and can be easily implemented by applications.)

Supports converting public/private keys to/from PEM/JWK. Supports working with generic keys (where the algorithm is determined at runtime), i.e. SomePrivateKey/SomePublicKey.

Uses good old openssl for crypto.

See the examples folder for some examples.

Commit count: 37

cargo fmt