|
CipherGetPasswordHash Method
|
Gets the Base64 encoded SHA-256 hash of given user password.
Namespace: GSF.Security.CryptographyAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.220-beta+a56b2444ff27b37e053039e60f062b99378309bd
Syntax public static string GetPasswordHash(
string password,
int categoryID = 0
)
Public Shared Function GetPasswordHash (
password As String,
Optional categoryID As Integer = 0
) As String
public:
static String^ GetPasswordHash(
String^ password,
int categoryID = 0
)
static member GetPasswordHash :
password : string *
?categoryID : int
(* Defaults:
let _categoryID = defaultArg categoryID 0
*)
-> string
GSF.Security.Cryptography.Cipher.GetPasswordHash = function(password, categoryID);
View SourceParameters
- password String
- User password to get hash for.
- categoryID Int32 (Optional)
- Specifies the desired category ID.
Return Value
StringBase64 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