C# 클래스 Candor.Security.Cryptography.HashProvider

Provides cryptographic hash capabilities.
상속: System.Configuration.Provider.ProviderBase
파일 보기 프로젝트 열기: michael-lang/candor-common

공개 메소드들

메소드 설명
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