|
UserRoleCacheHashLoginID Method
|
Calculates the hash of the userName used as the key for the user roles dictionary.
Namespace: GSF.SecurityAssembly: GSF.Security (in GSF.Security.dll) Version: 2.4.182-beta
Syntax Protected Function HashLoginID (
userName As String
) As String
function HashLoginID(userName);
View SourceParameters
- userName String
- User name to hash.
Return Value
StringThe 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