CipherGetPasswordHash Method

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

Definition

Namespace: Gemstone.Security.Cryptography
Assembly: Gemstone.Security (in Gemstone.Security.dll) Version: 1.0.183 -- Release Build+e8d70f88ffe1c3ecb20f972441dde3ce66234369
public static string GetPasswordHash(
	string password,
	int categoryID = 0
)

Parameters

password  String
User password to get hash for.
categoryID  Int32  (Optional)
Specifies the optional 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