Skip to content

scottbrady91/ScottBrady91.AspNetCore.Identity.Argon2PasswordHasher

Repository files navigation

Argon2 Password Hasher for ASP.NET Core Identity

NuGet

An implementation of IPasswordHasher 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.