Click or drag to resize

UserDataCacheHashLoginID Method

Calculates the hash of the loginID used as the key for the user data cache.

Namespace: GSF.Security
Assembly: GSF.Security (in GSF.Security.dll) Version: 2.4.181-beta
Syntax
protected string HashLoginID(
	string loginID
)
View Source

Parameters

loginID  String
Login ID to hash.

Return Value

String
The Base64 encoded calculated SHA-2 hash of the loginID used as the key for the user data cache.
Remarks
For added security, a hash of the loginID is used as the key for UserData in the user data cache instead of the actual loginID. This method allows the consumer to properly calculate this hash when directly using the user data cache.
See Also