C# Class Candor.Security.Cryptography.HashProvider

Provides cryptographic hash capabilities.
Inheritance: System.Configuration.Provider.ProviderBase
Afficher le fichier Open project: michael-lang/candor-common

Méthodes publiques

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

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

GetSalt() public abstract méthode

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

Hash() public abstract méthode

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

Initialize() public méthode

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