An implementation of IPasswordHasher using Scrypt.NET.
services.AddIdentity<TUser, TRole>();
services.AddScoped<IPasswordHasher<TUser>, ScryptPasswordHasher<TUser>>();
- IterationCount: int
- BlockSize: int
- ThreadCount: int
Register with:
services.Configure<ScryptPasswordHasherOptions>(options => {
options.IterationCount = 16384;
options.BlockSize = 8;
options.ThreadCount = 1;
});
This library supports Current and LTS versions of .NET.