Method | Description | |
---|---|---|
GenerateSalt ( int byteLength = SALT_SIZE ) : string | ||
Hash ( byte input, string algorithm = "sha256" ) : string | ||
Hash ( string input, string algorithm = "sha256" ) : string | ||
HashPassword ( string password ) : string | ||
SHA1 ( string input ) : string | ||
SHA256 ( string input ) : string | ||
VerifyHashedPassword ( string hashedPassword, string password ) : bool |
Method | Description | |
---|---|---|
BinaryToHex ( byte data ) : string | ||
ByteArraysEqual ( byte a, byte b ) : bool | ||
GenerateSaltInternal ( int byteLength = SALT_SIZE ) : byte[] | ||
GenerateToken ( ) : string |
public static GenerateSalt ( int byteLength = SALT_SIZE ) : string | ||
byteLength | int | |
return | string |
public static Hash ( byte input, string algorithm = "sha256" ) : string | ||
input | byte | |
algorithm | string | |
return | string |
public static Hash ( string input, string algorithm = "sha256" ) : string | ||
input | string | |
algorithm | string | |
return | string |
public static HashPassword ( string password ) : string | ||
password | string | |
return | string |
public static SHA256 ( string input ) : string | ||
input | string | |
return | string |
public static VerifyHashedPassword ( string hashedPassword, string password ) : bool | ||
hashedPassword | string | |
password | string | |
return | bool |