C# 클래스 SIPSorcery.Sys.PasswordHash

파일 보기 프로젝트 열기: sipsorcery/sipsorcery

공개 메소드들

메소드 설명
GenerateSalt ( int explicitIterations = null ) : string

Generates a salt that can be used to generate a password hash. The salt is a combination of a block of bytes to represent the salt entropy and an integer that represents the interation count to feed into the RFC289 algorithm used to derive the password hash. The iterations count is used to slow down the hash generating alrogithm to mitigate brute force and rainbow table attacks.

Hash ( string value, string salt ) : string

Generates the password hash from the password and salt. THe salt must be in the format iterations.salt.

메소드 상세

GenerateSalt() 공개 정적인 메소드

Generates a salt that can be used to generate a password hash. The salt is a combination of a block of bytes to represent the salt entropy and an integer that represents the interation count to feed into the RFC289 algorithm used to derive the password hash. The iterations count is used to slow down the hash generating alrogithm to mitigate brute force and rainbow table attacks.
public static GenerateSalt ( int explicitIterations = null ) : string
explicitIterations int The number of iterations used to derive the password bytes. Must be greater than the constant specifying the minimum iterations.
리턴 string

Hash() 공개 정적인 메소드

Generates the password hash from the password and salt. THe salt must be in the format iterations.salt.
public static Hash ( string value, string salt ) : string
value string The value to generate a hash for.
salt string The salt (and iteration count) to generate the hash with.
리턴 string