An implementation of IPasswordHasher<TUser>
using BCrypt.NET - next.
services.AddIdentity<TUser, TRole>();
services.AddScoped<IPasswordHasher<TUser>, BCryptPasswordHasher<TUser>>();
- WorkFactor: int
- EnhancedEntropy: bool (Obsolete due to password shucking vulnerability)
Register with:
services.Configure<BCryptPasswordHasherOptions>(options => {
options.WorkFactor = 11;
options.EnhancedEntropy = false;
});
This library supports Current and LTS versions of .NET.