Click or drag to resize

UserRoleCacheHashLoginID Method

Calculates the hash of the userName used as the key for the user roles dictionary.

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

Parameters

userName  String
User name to hash.

Return Value

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