C# Класс Candor.Security.Cryptography.HashProvider

Provides cryptographic hash capabilities.
Наследование: System.Configuration.Provider.ProviderBase
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

GetSalt() публичный Метод

Creates a true random salt with a default length of 256.
public GetSalt ( ) : String
Результат String

GetSalt() публичный абстрактный Метод

Creates a true random salt.
public abstract GetSalt ( Int32 length ) : String
length System.Int32 length of the salt to return
Результат String

Hash() публичный абстрактный Метод

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.
Результат String

Initialize() публичный Метод

Initializes this provider's base settings.
public Initialize ( string name, System config ) : void
name string
config System
Результат void