BooTeK / ScottBrady91.AspNetCore.Identity.Argon2PasswordHasher

ASP.NET Core Identity IPasswordHasher implementation using Argon2

Home Page:https://www.scottbrady91.com/ASPNET-Identity/Improving-the-ASPNET-Core-Identity-Password-Hasher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

ASP.NET Core Identity IPasswordHasher implementation using Argon2

https://www.scottbrady91.com/ASPNET-Identity/Improving-the-ASPNET-Core-Identity-Password-Hasher

License:MIT License


Languages

Language:C# 100.0%