Click or drag to resize
SecurityHelperGetPBKDF2Hash Method
Returns PBKDF2 hash for password. Rfc2898DeriveBytes implements PBKDF2 with HMACSHA1 (hard coded in the class).

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 10.0.0
Syntax
C#
public static string GetPBKDF2Hash(
	string password
)

Parameters

password
Type: SystemString
Password to be hashed.

Return Value

Type: String
Base64 encoded hash containing iteration count, salt and derived sub-key.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown 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