C# Class TokenAuthentication.Services.CryptoService

Inheritance: ICryptoService
显示文件 Open project: bytefish/NancyOwinExample

Public Methods

Method 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

Method Description
Concatenate ( byte a, byte b ) : byte[]
CreateSalt ( ) : byte[]

Method Details

ComputeHash() public method

public ComputeHash ( byte data, byte salt ) : byte[]
data byte
salt byte
return byte[]

CreateHash() public method

public CreateHash ( byte data, byte &hash, byte &salt ) : void
data byte
hash byte
salt byte
return void

CryptoService() public method

public CryptoService ( IApplicationSettings settings, IHashProvider hashProvider ) : System.Security.Cryptography
settings IApplicationSettings
hashProvider IHashProvider
return System.Security.Cryptography