Click or drag to resize

Cipher.GetPasswordHash Method

Gets the Base64 encoded SHA-256 hash of given user password.

Namespace: GSF.Security.Cryptography
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.246-beta+42d747c9715f1fa10d4cfc2f9ab3daabb0a187d9
Syntax
public static string GetPasswordHash(
	string password,
	int categoryID = 0
)
View Source

Parameters

password  String
User password to get hash for.
categoryID  Int32  (Optional)
Specifies the desired category ID.

Return Value

String
Base64 encoded SHA-256 hash of user password.
Remarks
The optional categoryID will be appended to the password to allow the same password to be used in different contexts and return different results, when useful.
See Also