Zero-dependency JOSE, JWT, JWE and JWK library for .NET
open sourceMITfree
jose-jwt is a minimalist, zero-dependency .NET library for creating, decoding and encrypting JSON Web Tokens. It supports the full suite of JSON Web Algorithms: HMAC, ECDSA, RSA and RSA-PSS signatures, and JWE encryption with RSA-OAEP, RSA PKCS#1, AES key wrap, AES-GCM key wrap, ECDH-ES and PBES2, plus JSON Web Keys (RFC 7517), JWE JSON serialization (RFC 7516) and DEFLATE compression. It plugs into any JSON library, targets .NET Framework and .NET (netstandard), and its makers say it's FIPS compliant since version 2.1. It's tested for compatibility with jose4j, Nimbus JOSE+JWT and json-jwt.
Problems it solves
- create and verify JWTs in a .NET application
- encrypt a token with JWE in C#
- read and write JSON Web Keys in .NET
Features
- sign and verify with HS, ES, RS and PS algorithms
- JWE encryption with RSA-OAEP, AES key wrap, AES-GCM key wrap, ECDH-ES and PBES2
- JSON Web Keys (RFC 7517) and JWE JSON serialization (RFC 7516)
- DEFLATE compression with a default decompression limit
- pluggable JSON mapper; zero dependencies
- FIPS compliant since version 2.1, as its makers state
Limitations
- ECDH-ES encryption on Linux, macOS and FreeBSD needs managed ECDsa keys (from version 5.0).1
Alternatives
The same job
These do what jose-jwt does.
- Jwt.Net A JWT (JSON Web Token) implementation for .NET
