C# Class Nancy.Security.SaltedHash

Show file Open project: GestUAB/GestUAB Class Usage Examples

Public Methods

Method Description
Create ( string password ) : SaltedHash
Create ( string salt, string hash ) : SaltedHash
Verify ( string password ) : bool

Private Methods

Method Description
CalculateHash ( byte data ) : byte[]
CalculateHash ( string salt, string password ) : string
CreateRandomBytes ( int len ) : byte[]
CreateSalt ( ) : string
SaltedHash ( string s, string h ) : System
ToByteArray ( string s ) : byte[]

Method Details

Create() public static method

public static Create ( string password ) : SaltedHash
password string
return SaltedHash

Create() public static method

public static Create ( string salt, string hash ) : SaltedHash
salt string
hash string
return SaltedHash

Verify() public method

public Verify ( string password ) : bool
password string
return bool