ValidationHelperGetHashString Method (String, Boolean, String, String) |
Note: This API is now obsolete.
Gets the SHA2 hash for the given value (salt unique to certain user session and database is added).
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax [ObsoleteAttribute("Use method GetHashString(value, settings)")]
public static string GetHashString(
string value,
bool userSpecific,
string customSalt = null,
string hashSalt = null
)
Parameters
- value
- Type: SystemString
Value to hash - userSpecific
- Type: SystemBoolean
Indicates if the hash string should be bound to current user - customSalt (Optional)
- Type: SystemString
Custom salt string. If not specified then default salt HashStringSalt is used. - hashSalt (Optional)
- Type: SystemString
Additional hash salt for specific context.
Return Value
Type:
StringSee Also