Method | Description | |
---|---|---|
Hash ( string password, int iterations = 100000 ) : string | ||
RandomString ( int length, string allowedChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" ) : string | ||
Verify ( string hashedPassword, string password ) : bool |
Method | Description | |
---|---|---|
ByteArraysEqual ( byte a, byte b ) : bool |
public static Hash ( string password, int iterations = 100000 ) : string | ||
password | string | |
iterations | int | |
return | string |
public static RandomString ( int length, string allowedChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" ) : string | ||
length | int | |
allowedChars | string | |
return | string |
public static Verify ( string hashedPassword, string password ) : bool | ||
hashedPassword | string | |
password | string | |
return | bool |