|
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.258-beta+f8b6aa3dbfe0b4cc2b0b0760dd5d2a3dd4f59d09
Syntaxpublic 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