|
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.194-beta+b38f3dc2cd81dd2eb472301be032511223ed62a6
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