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

The crypto provider.
Inheritance: ICryptoProvider
Afficher le fichier Open project: dv00d00/BinaryStudio.TaskManager Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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. ///
Résultat bool

CreateCryptoPassword() public méthode

The create crypto password with salt.
public CreateCryptoPassword ( string password, string salt ) : string
password string /// The password. ///
salt string /// The salt. ///
Résultat string

CreateHash() public méthode

The create hash.
public CreateHash ( string password ) : string
password string /// The password. ///
Résultat string

CreateSalt() public méthode

The create salt.
public CreateSalt ( ) : string
Résultat string