C# 클래스 Aqueduct.Utils.HashService

Hash a plain string with given salt and compare the hashed strings with plain text.
파일 보기 프로젝트 열기: aqueduct/Aqueduct.SitecoreLib

공개 메소드들

메소드 설명
ComputeBase64Hash ( string plainText, string salt ) : string

hashes the given string with given salt to base 64 string

ComputeHash ( string plainText, string salt ) : string

hashes the given string with given salt to base 64 string

ComputeHexadecimalStringHash ( string plainText, string salt ) : string

hashes the given string with given salt to hexadecimal string

HashService ( ) : System

Default constructor that creates defaul hash algorithm to use

HashService ( HashAlgorithm hashAlgorithm ) : System

Constractor to pass a hash algorithm to using in hashing process

VerifyHash ( string plainText, string hashValue, string salt ) : bool

Verifies if the hashValue is hashed form of plainText with given salt

비공개 메소드들

메소드 설명
GetHashBytes ( string plainText, string salt ) : byte[]

메소드 상세

ComputeBase64Hash() 공개 메소드

hashes the given string with given salt to base 64 string
public ComputeBase64Hash ( string plainText, string salt ) : string
plainText string plain text to be hashed
salt string Salt that will be used in hashing
리턴 string

ComputeHash() 공개 메소드

hashes the given string with given salt to base 64 string
public ComputeHash ( string plainText, string salt ) : string
plainText string plain text to be hashed
salt string Salt that will be used in hashing
리턴 string

ComputeHexadecimalStringHash() 공개 메소드

hashes the given string with given salt to hexadecimal string
public ComputeHexadecimalStringHash ( string plainText, string salt ) : string
plainText string plain text to be hashed
salt string Salt that will be used in hashing
리턴 string

HashService() 공개 메소드

Default constructor that creates defaul hash algorithm to use
public HashService ( ) : System
리턴 System

HashService() 공개 메소드

Constractor to pass a hash algorithm to using in hashing process
public HashService ( HashAlgorithm hashAlgorithm ) : System
hashAlgorithm System.Security.Cryptography.HashAlgorithm
리턴 System

VerifyHash() 공개 메소드

Verifies if the hashValue is hashed form of plainText with given salt
public VerifyHash ( string plainText, string hashValue, string salt ) : bool
plainText string Plain text to be verified
hashValue string Hash value to be verified
salt string Salt that will be used in hashing
리턴 bool