NuvTools.Security
9.5.0
dotnet add package NuvTools.Security --version 9.5.0
NuGet\Install-Package NuvTools.Security -Version 9.5.0
<PackageReference Include="NuvTools.Security" Version="9.5.0" />
<PackageVersion Include="NuvTools.Security" Version="9.5.0" />
<PackageReference Include="NuvTools.Security" />
paket add NuvTools.Security --version 9.5.0
#r "nuget: NuvTools.Security, 9.5.0"
#:package NuvTools.Security@9.5.0
#addin nuget:?package=NuvTools.Security&version=9.5.0
#tool nuget:?package=NuvTools.Security&version=9.5.0
Nuv Tools Security Libraries
This repository provides a set of libraries for implementing security features in .NET applications, including general-purpose security utilities, ASP.NET Core integrations, and Blazor authentication helpers.
Libraries Overview
NuvTools.Security
Common library for security purposes. Includes helpers for cryptography, hashing, and other security-related utilities.
NuvTools.Security.AspNetCore
Common library for security purposes in ASP.NET Core. Provides configuration models and helpers for managing authentication, authorization, and security settings.
NuvTools.Security.AspNetCore.Blazor
A helper library for managing authentication and security-related tasks in Blazor applications. Facilitates manual and OIDC-based authentication state management.
Getting Started
Install via NuGet:
- Search for the desired package on NuGet or use the following commands:
dotnet add package NuvTools.Security dotnet add package NuvTools.Security.AspNetCore dotnet add package NuvTools.Security.AspNetCore.Blazor
- Search for the desired package on NuGet or use the following commands:
Usage Example:
- Hashing a string:
using NuvTools.Security.Helpers; string hash = CryptographyHelper.ComputeSHA256Hash("your-value"); - ASP.NET Core Security Configuration:
// appsettings.json { "NuvTools.Security": { "Issuer": "your-issuer", "Audience": "your-audience", "SecretKey": "your-secret-key" } }using NuvTools.Security.AspNetCore.Configurations; var config = configuration.GetSection("NuvTools.Security").Get<SecurityConfigurationSection>();
- Hashing a string:
License
This project is licensed under the MIT License. See the LICENSE file for details.
Publishing
To publish packages to your NuGet source, use:
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- NuvTools.Validation (>= 9.5.0)
- System.IdentityModel.Tokens.Jwt (>= 8.14.0)
-
net9.0
- NuvTools.Validation (>= 9.5.0)
- System.IdentityModel.Tokens.Jwt (>= 8.14.0)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on NuvTools.Security:
| Package | Downloads |
|---|---|
|
NuvTools.Security.Identity
Helper library to be used with ASP.NET Identity. |
|
|
NuvTools.Security.Identity.AspNetCore
Library to use with ASP.NET Identity modules on server-side. |
|
|
NuvTools.Security.AspNetCore.Blazor
A helper library for managing authentication and security-related tasks in Blazor applications. |
|
|
NuvTools.Security.AspNetCore.Extensions
Common library for security purposes in ASP.NET Core. |
GitHub repositories
This package is not used by any popular GitHub repositories.