C# Class Skimur.App.Services.Impl.PasswordManager

The password manager
Inheritance: IPasswordManager
ファイルを表示 Open project: skimur/skimur

Public Methods

Method Description
HashPassword ( string password ) : string

Hashes the password.

PasswordStrength ( string password ) : PasswordScore

Determins the password strength

VerifyHashedPassword ( string hashedPassword, string providedPassword ) : bool

Verifies the hashed password.

Private Methods

Method Description
ByteArraysEqual ( byte a, byte b ) : bool

Method Details

HashPassword() public method

Hashes the password.
password
public HashPassword ( string password ) : string
password string The password.
return string

PasswordStrength() public method

Determins the password strength
public PasswordStrength ( string password ) : PasswordScore
password string The password.
return PasswordScore

VerifyHashedPassword() public method

Verifies the hashed password.
public VerifyHashedPassword ( string hashedPassword, string providedPassword ) : bool
hashedPassword string The hashed password.
providedPassword string The provided password.
return bool