SecurityHelperGetPBKDF2Hash Method |
Returns PBKDF2 hash for password.
Rfc2898DeriveBytes implements PBKDF2 with HMACSHA1 (hard coded in the class).
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax public static string GetPBKDF2Hash(
string password
)
Parameters
- password
- Type: SystemString
Password to be hashed.
Return Value
Type:
StringBase64 encoded hash containing iteration count, salt and derived sub-key.
Exceptions Exception | Condition |
---|
ArgumentNullException | Thrown when password is null. |
Remarks
Use this method for generating password hashes only. Because this method is by design CPU consuming it generally is not suitable for hashing
arbitrary input data. The performance/security relation can be adjusted by modifying the Pbkdf2IterationsCount property.
See Also