using Microsoft.AspNetCore.Identity; using IPasswordHasher = Umbraco.Core.Security.IPasswordHasher; namespace Umbraco.Web.Common.AspNetCore { public class AspNetCorePasswordHasher : IPasswordHasher { private PasswordHasher _underlyingHasher; public AspNetCorePasswordHasher() { _underlyingHasher = new PasswordHasher(); } public string HashPassword(string password) { return _underlyingHasher.HashPassword(null, password); } } }