C# Class Candor.Security.Cryptography.HashProvider

Provides cryptographic hash capabilities.
Inheritance: System.Configuration.Provider.ProviderBase
Exibir arquivo Open project: michael-lang/candor-common

Public Methods

Method Description
GetSalt ( ) : String

Creates a true random salt with a default length of 256.

GetSalt ( Int32 length ) : String

Creates a true random salt.

Hash ( String salt, String originalValue, Int32 iterations ) : String

Creates an unreversible hashed value consistently given the same input.

Initialize ( string name, System config ) : void

Initializes this provider's base settings.

Method Details

GetSalt() public method

Creates a true random salt with a default length of 256.
public GetSalt ( ) : String
return String

GetSalt() public abstract method

Creates a true random salt.
public abstract GetSalt ( Int32 length ) : String
length System.Int32 length of the salt to return
return String

Hash() public abstract method

Creates an unreversible hashed value consistently given the same input.
public abstract Hash ( String salt, String originalValue, Int32 iterations ) : String
salt String Another non-secret value paired with the secret to /// make it more difficult to dictionary attack a collection of hashed values.
originalValue String The original value to keep secret.
iterations System.Int32 The iterations to hash the originalValue and salt.
return String

Initialize() public method

Initializes this provider's base settings.
public Initialize ( string name, System config ) : void
name string
config System
return void