PasswordHasherOptions Class

Specifies options for password hashing.

Namespace
Microsoft.AspNetCore.Identity
Assemblies
  • Microsoft.AspNetCore.Identity

Syntax

public class PasswordHasherOptions
class Microsoft.AspNetCore.Identity.PasswordHasherOptions

Properties

Microsoft.AspNetCore.Identity.PasswordHasherOptions.CompatibilityMode

Gets or sets the compatibility mode used when hashing passwords.

Return type:Microsoft.AspNetCore.Identity.PasswordHasherCompatibilityMode
Returns:The compatibility mode used when hashing passwords.
public PasswordHasherCompatibilityMode CompatibilityMode { get; set; }
Microsoft.AspNetCore.Identity.PasswordHasherOptions.IterationCount

Gets or sets the number of iterations used when hashing passwords using PBKDF2.

Return type:System.Int32
Returns:The number of iterations used when hashing passwords using PBKDF2.
public int IterationCount { get; set; }