namespace Microsoft.AspNetCore.Identity
{
///
/// Provides password hashing and verification methods.
///
public static class PasswordHelper
{
///
/// Hashes a password.
///
/// The plain password.
///
public static string HashPassword(string plainPassword)
{
if (string.IsNullOrWhiteSpace(plainPassword))
return plainPassword?.Trim();
var ph = new PasswordHasher