DotNetCore.Security 20.15.0

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 password) { }

    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);

    bool Validate(string value, string salt, string hash);
}

HashService

public class HashService : IHashService
{
    public string Create(string value, string salt) { }

    public bool Validate(string value, string salt, string hash) { }
}

Extensions

public static class Extensions
{
    public static void AddCryptographyService(this IServiceCollection services, string password) { }

    public static void AddHashService(this IServiceCollection services) { }
}

Showing the top 20 packages that depend on DotNetCore.Security.

Packages Downloads
DotNetCore.AspNetCore
DotNetCore.AspNetCore
0

Version Downloads Last updated
20.15.0 0 5/28/2026
16.11.0 0 5/28/2026