C# Class PasswordSharp.CryptUtils

Exibir arquivo Open project: ahall/PasswordSharp

Public Methods

Method Description
Crypt ( string password, string salt ) : string
MakeSalt ( ) : string
MakeSalt ( string algoType ) : string
MakeSalt ( string algoType, int rounds ) : string
Verify ( string hash, string password ) : bool

Private Methods

Method Description
GetRounds ( ) : int

Method Details

Crypt() public static method

public static Crypt ( string password, string salt ) : string
password string
salt string
return string

MakeSalt() public static method

public static MakeSalt ( ) : string
return string

MakeSalt() public static method

public static MakeSalt ( string algoType ) : string
algoType string
return string

MakeSalt() public static method

public static MakeSalt ( string algoType, int rounds ) : string
algoType string
rounds int
return string

Verify() public static method

public static Verify ( string hash, string password ) : bool
hash string
password string
return bool