C# 클래스 SecurePasswordHasher, code

파일 보기 프로젝트 열기: shendongnian/code 1 사용 예제들

공개 메소드들

메소드 설명
Hash ( string password ) : string

Creates a hash from a password with 10000 iterations

Hash ( string password, int iterations ) : string

Creates a hash from a password

IsHashSupported ( string hashString ) : bool

Check if hash is supported

Verify ( string password, string hashedPassword ) : bool

verify a password against a hash

메소드 상세

Hash() 공개 정적인 메소드

Creates a hash from a password with 10000 iterations
public static Hash ( string password ) : string
password string the password
리턴 string

Hash() 공개 정적인 메소드

Creates a hash from a password
public static Hash ( string password, int iterations ) : string
password string the password
iterations int number of iterations
리턴 string

IsHashSupported() 공개 정적인 메소드

Check if hash is supported
public static IsHashSupported ( string hashString ) : bool
hashString string the hash
리턴 bool

Verify() 공개 정적인 메소드

verify a password against a hash
public static Verify ( string password, string hashedPassword ) : bool
password string the password
hashedPassword string the hash
리턴 bool