![]() |
VOOZH | about |
dotnet add package JWT.Standard --version 2025.5.7.1
NuGet\Install-Package JWT.Standard -Version 2025.5.7.1
<PackageReference Include="JWT.Standard" Version="2025.5.7.1" />
<PackageVersion Include="JWT.Standard" Version="2025.5.7.1" />Directory.Packages.props
<PackageReference Include="JWT.Standard" />Project file
paket add JWT.Standard --version 2025.5.7.1
#r "nuget: JWT.Standard, 2025.5.7.1"
#:package JWT.Standard@2025.5.7.1
#addin nuget:?package=JWT.Standard&version=2025.5.7.1Install as a Cake Addin
#tool nuget:?package=JWT.Standard&version=2025.5.7.1Install as a Cake Tool
JWT.Net
var password = Guid.NewGuid().ToString("N");
var jwtp1 = new JWTPackage("yswenli",
"jwt test",
"everyone",
DateTimeHelper.Now.AddMinutes(3).GetTimeStamp().ToString(),
DateTimeHelper.Now.ToString(), DateTimeHelper.Now.ToString(),
Guid.NewGuid().ToString("N"),
password);
var sign = jwtp1.GetBearerToken();
var password = Guid.NewGuid().ToString("N");
var jwtp1 = new JWTPackage<User>(new User()
{
Id = "1",
Name = "yswenli",
Role = "Admin"
}, 180, password);
var sign = jwtp1.GetBearerToken();
JWTPackage jwtp2 = null;
try
{
jwtp2 = JWTPackage.Parse(sign, password);
}
catch (IllegalTokenException iex)
{
Console.WriteLine($"解析失败:{iex.Message}");
}
catch (TokenExpiredException tex)
{
Console.WriteLine($"解析失败:{tex.Message}");
}
catch (SignatureVerificationException sex)
{
Console.WriteLine($"解析失败:{sex.Message}");
}
catch (Exception ex)
{
Console.WriteLine($"解析失败:{ex.Message}");
}
if (jwtp2 != null)
Console.WriteLine($"jwtp2.data:{jwtp2.Payload.Data}");
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 2 NuGet packages that depend on JWT.Standard:
| Package | Downloads |
|---|---|
|
TJC.Cyclops.Web.Core
企服版框架中api核心功能项目,基于aspnetcore集成di、jwt、swagger、codefirtst、支持多种常见数据库、nacos配置中心、统一接口回复参数、全局异常捕获、全局接口日志、防重放攻击、图形验证码、快捷上下文对象、上传下载、数据导入导出等功能 |
|
|
RiverLand.FrameWork.AspnetCore
框架中的web api相关功能 |
Showing the top 1 popular GitHub repositories that depend on JWT.Standard:
| Repository | Stars |
|---|---|
|
yswenli/SAEA
SAEA.Socket is a high-performance IOCP framework TCP based on dotnet standard 2.0; Src contains its application test scenarios, such as websocket,rpc, redis driver, MVC WebAPI, lightweight message server, ultra large file transmission, etc. SAEA.Socket是一个高性能IOCP框架的 TCP,基于dotnet standard 2.0;Src中含有其应用测试场景,例如websocket、rpc、redis驱动、MVC WebAPI、轻量级消息服务器、超大文件传输等
|
| Version | Downloads | Last Updated |
|---|---|---|
| 2025.5.7.1 | 8,097 | 5/7/2025 |
| 2025.4.10.1 | 760 | 4/10/2025 |
| 3.1.8.6 | 12,172 | 1/29/2023 |
| 3.0.0.3 | 616 | 8/5/2022 |
| 3.0.0.2 | 597 | 8/5/2022 |
| 2.0.1.9 | 574 | 8/5/2022 |
| 2.0.1.8 | 570 | 8/3/2022 |
| 2.0.1.7 | 599 | 8/3/2022 |
| 2.0.1.6 | 560 | 8/3/2022 |
| 2.0.0.2 | 610 | 6/24/2022 |
| 1.0.0.6 | 619 | 6/23/2022 |
| 1.0.0.5 | 578 | 6/23/2022 |
| 1.0.0.4 | 595 | 6/22/2022 |
| 1.0.0.3 | 1,495 | 8/6/2020 |
| 1.0.0.2 | 887 | 8/6/2020 |
| 1.0.0.1 | 897 | 8/6/2020 |
JWT.Standard a JWT (JSON Web Token) implementation for .NET
source site:https://github.com/cnwenli/JWT.Net