C# Class TokenAuthentication.Services.CryptoService

Inheritance: ICryptoService
Afficher le fichier Open project: bytefish/NancyOwinExample

Méthodes publiques

Méthode Description
ComputeHash ( byte data, byte salt ) : byte[]
CreateHash ( byte data, byte &hash, byte &salt ) : void
CryptoService ( IApplicationSettings settings, IHashProvider hashProvider ) : System.Security.Cryptography

Private Methods

Méthode Description
Concatenate ( byte a, byte b ) : byte[]
CreateSalt ( ) : byte[]

Method Details

ComputeHash() public méthode

public ComputeHash ( byte data, byte salt ) : byte[]
data byte
salt byte
Résultat byte[]

CreateHash() public méthode

public CreateHash ( byte data, byte &hash, byte &salt ) : void
data byte
hash byte
salt byte
Résultat void

CryptoService() public méthode

public CryptoService ( IApplicationSettings settings, IHashProvider hashProvider ) : System.Security.Cryptography
settings IApplicationSettings
hashProvider IHashProvider
Résultat System.Security.Cryptography