ScottBrady91.AspNetCore.Identity.Argon2PasswordHasher icon indicating copy to clipboard operation
ScottBrady91.AspNetCore.Identity.Argon2PasswordHasher copied to clipboard

ASP.NET Core Identity IPasswordHasher implementation using Argon2

Argon2 Password Hasher for ASP.NET Core Identity

NuGet

An implementation of IPasswordHasher<TUser> using libsodium-core.

Installation

services.AddIdentity<TUser, TRole>();
services.AddScoped<IPasswordHasher<TUser>, Argon2PasswordHasher<TUser>>();

Options

  • Strength: Argon2HashStrength

Register with:

services.Configure<Argon2PasswordHasherOptions>(options => {
    options.Strength = Argon2HashStrength.Interactive;
});

.NET Support

This library supports Current and LTS versions of .NET.