C# Class Demo.Domain.Infrastructure.Security.PasswordStorage

Mostrar archivo Open project: volak/DDD.Enterprise.Example

Public Methods

Method Description
CreateHash ( string password ) : string
VerifyPassword ( string password, string goodHash ) : bool

Private Methods

Method Description
Pbkdf2 ( string password, byte salt, int iterations, int outputBytes ) : byte[]
SlowEquals ( byte a, byte b ) : bool

Method Details

CreateHash() public static method

public static CreateHash ( string password ) : string
password string
return string

VerifyPassword() public static method

public static VerifyPassword ( string password, string goodHash ) : bool
password string
goodHash string
return bool