YITC.DotNetCore.Security
16.30.0.4
dotnet add package YITC.DotNetCore.Security --version 16.30.0.4
NuGet\Install-Package YITC.DotNetCore.Security -Version 16.30.0.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="YITC.DotNetCore.Security" Version="16.30.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add YITC.DotNetCore.Security --version 16.30.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: YITC.DotNetCore.Security, 16.30.0.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install YITC.DotNetCore.Security as a Cake Addin #addin nuget:?package=YITC.DotNetCore.Security&version=16.30.0.4 // Install YITC.DotNetCore.Security as a Cake Tool #tool nuget:?package=YITC.DotNetCore.Security&version=16.30.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DotNetCore.Security
Cryptography
ICryptographyService
public interface ICryptographyService
{
string Decrypt(string value, string salt);
string Encrypt(string value, string salt);
}
CryptographyService
public class CryptographyService : ICryptographyService
{
public CryptographyService(string key) { }
public string Decrypt(string value, string salt) { }
public string Encrypt(string value, string salt) { }
}
Hash
IHashService
public interface IHashService
{
string Create(string value, string salt);
}
HashService
public class HashService : IHashService
{
public string Create(string value, string salt) { }
}
JWT
IJwtService
public interface IJwtService
{
Dictionary<string, object> Decode(string token);
string Encode(IList<Claim> claims);
}
JwtService
public class JwtService : IJwtService
{
public JwtService(JwtSettings settings) { }
public Dictionary<string, object> Decode(string token) { }
public string Encode(IList<Claim> claims) { }
}
JwtSettings
public class JwtSettings
{
public JwtSettings(string key, TimeSpan expires) { }
public JwtSettings(string key, TimeSpan expires, string audience, string issuer) : this(key, expires) { }
public string Audience { get; }
public TimeSpan Expires { get; }
public string Issuer { get; }
public SecurityKey SecurityKey { get; }
public TokenValidationParameters TokenValidationParameters { get; }
}
Extensions
public static class Extensions
{
public static void AddCryptographyService(this IServiceCollection services, string key) { }
public static void AddHashService(this IServiceCollection services) { }
public static void AddJwtService(this IServiceCollection services, JwtSettings settings) { }
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Microsoft.Extensions.DependencyInjection (>= 6.0.0)
- System.IdentityModel.Tokens.Jwt (>= 6.17.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on YITC.DotNetCore.Security:
Package | Downloads |
---|---|
YITC.DotNetCore.AspNetCore
DotNetCore.AspNetCore forked by YITC |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
16.30.0.4 | 683 | 4/15/2022 |
16.26.0.3 | 537 | 3/17/2022 |
16.26.0.2-yitc | 196 | 3/16/2022 |
16.26.0 | 526 | 3/16/2022 |
16.26.0-yitc | 178 | 3/16/2022 |