Skip to content
ASP.NET Core Identity IPasswordHasher implementation using Scrypt
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/ScottBrady91.AspNetCore.Identity.ScryptPasswordHasher
test/ScottBrady91.AspNetCore.Identity.ScryptPasswordHasher.Tests
.gitignore
LICENSE
README.md Update README.md Oct 29, 2017
ScottBrady91.AspNetCore.Identity.ScryptPasswordHasher.sln Initial working version using Sodium.Core. Options TODO Oct 26, 2017

README.md

Scrypt Password Hasher for ASP.NET Core Identity (ASP.NET Identity 3)

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;
});
You can’t perform that action at this time.