C# Class BinaryStudio.TaskManager.Logic.Core.CryptoProvider

The crypto provider.
Inheritance: ICryptoProvider
ファイルを表示 Open project: dv00d00/BinaryStudio.TaskManager Class Usage Examples

Public Methods

Method Description
ComparePassword ( string passwordHash, string passwordSalt, string password ) : bool

The compare password with user password in database.

CreateCryptoPassword ( string password, string salt ) : string

The create crypto password with salt.

CreateHash ( string password ) : string

The create hash.

CreateSalt ( ) : string

The create salt.

Method Details

ComparePassword() public method

The compare password with user password in database.
public ComparePassword ( string passwordHash, string passwordSalt, string password ) : bool
passwordHash string /// The user password hash. ///
passwordSalt string /// The user password salt. ///
password string /// The current password. ///
return bool

CreateCryptoPassword() public method

The create crypto password with salt.
public CreateCryptoPassword ( string password, string salt ) : string
password string /// The password. ///
salt string /// The salt. ///
return string

CreateHash() public method

The create hash.
public CreateHash ( string password ) : string
password string /// The password. ///
return string

CreateSalt() public method

The create salt.
public CreateSalt ( ) : string
return string