Info
Version: | 5.1.0 |
Author(s): | Dmitry Vsekhvalnov |
Last Update: | Friday, November 8, 2024 |
.NET Fiddle: | Online Example |
Project Url: | https://github.com/dvsekhvalnov/jose-jwt |
NuGet Url: | https://www.nuget.org/packages/jose-jwt |
Install
Install-Package jose-jwt
dotnet add package jose-jwt
paket add jose-jwt
jose-jwt Download (Unzip the "nupkg" after downloading)
Dependencies
.NETFramework 4.0
No dependencies.
No dependencies.
- NETStandard.Library(>= 1.6.1)
- Newtonsoft.Json(>= 9.0.1)
- System.IO.Compression(>= 4.3.0)
- System.Runtime.InteropServices(>= 4.3.0)
- System.Runtime.Serialization.Primitives(>= 4.3.0)
- System.Security.Cryptography.Algorithms(>= 4.3.0)
- System.Security.Cryptography.Cng(>= 4.3.0)
- System.Security.Cryptography.Csp(>= 4.3.0)
- System.Security.Cryptography.X509Certificates(>= 4.3.0)
- Newtonsoft.Json(>= 11.0.2)
- System.Security.Cryptography.Algorithms(>= 4.3.1)
- System.Security.Cryptography.Cng(>= 4.7.0)
Tags
Ultimate Javascript Object Signing and Encryption (JOSE), JSON Web Token (JWT), JSON Web Encryption (JWE) and JSON Web Key (JWK) Implementation for .NET and .NET Core.
Minimallistic. Zero-dependency. Full suite of signature and encryption algorithms.
Supports generating, decoding, encryption and compression of JSON Web Tokens.
Full-blown support for JSON Web Keys (RFC 7517) and two way bridging with .NET core cryptography. JSON parsing agnostic. Supports two-phase validation. FIPS compliant.
Unencoded payload and detached content support (RFC 7797).
JSON Web Encryption (JWE, RFC 7516) support. Cross compatible with all major operating systems - Windows, Linux, MacOS and FreeBSD.
Supported algorithms
Signing:
- HMAC signatures with HS256, HS384 and HS512.
- ECDSA signatures with ES256, ES384 and ES512.
- RSASSA-PKCS1-V1_5 signatures with RS256, RS384 and RS512.
- RSASSA-PSS signatures (probabilistic signature scheme with appendix) with PS256, PS384 and PS512.
- NONE (unprotected) plain text algorithm without integrity protection
Encryption:
- RSAES OAEP 256 384 512 encryption with A128CBC-HS256, A192CBC-HS384, A256CBC-HS512, A128GCM, A192GCM, A256GCM
- RSAES OAEP encryption with A128CBC-HS256, A192CBC-HS384, A256CBC-HS512, A128GCM, A192GCM, A256GCM
- RSAES-PKCS1-V1_5 encryption with A128CBC-HS256, A192CBC-HS384, A256CBC-HS512, A128GCM, A192GCM, A256GCM
- Direct symmetric key encryption with pre-shared key A128CBC-HS256, A192CBC-HS384, A256CBC-HS512, A128GCM, A192GCM and A256GCM
- A128KW, A192KW, A256KW encryption with A128CBC-HS256, A192CBC-HS384, A256CBC-HS512, A128GCM, A192GCM and A256GCM
- A128GCMKW, A192GCMKW, A256GCMKW encryption with A128CBC-HS256, A192CBC-HS384, A256CBC-HS512, A128GCM, A192GCM and A256GCM
- ECDH-ES encryption with A128CBC-HS256, A128GCM, A192GCM, A256GCM
- ECDH-ES+A128KW, ECDH-ES+A192KW, ECDH-ES+A256KW encryption with A128CBC-HS256, A128GCM, A192GCM, A256GCM
- PBES2-HS256+A128KW, PBES2-HS384+A192KW, PBES2-HS512+A256KW with A128CBC-HS256, A192CBC-HS384, A256CBC-HS512, A128GCM, A192GCM, A256GCM
Compression:
- DEFLATE compression
RFC 7797:
- Unencoded payload
- Detached content
RFC 7516:
- JSON Web Encryption (JWE) support
JSON Web Key (RFC 7517):
- RSA, EC, oct keys
- X509 Chains, SHA1 & SHA2 thumbprints.