Skip to content

scottbrady91/ScottBrady91.AspNetCore.Identity.ScryptPasswordHasher

Repository files navigation

Scrypt Password Hasher for ASP.NET Core Identity

NuGet

An implementation of IPasswordHasher using Scrypt.NET.

Installation

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

Options

  • IterationCount: int
  • BlockSize: int
  • ThreadCount: int

Register with:

services.Configure<ScryptPasswordHasherOptions>(options => {
    options.IterationCount = 16384;
    options.BlockSize = 8;
    options.ThreadCount = 1;
});

.NET Support

This library supports Current and LTS versions of .NET.