Crypto.HashPassword Method
Returns an RFC 2898 hash value for the specified password.
Assembly: System.Web.Helpers (in System.Web.Helpers.dll)
Parameters
- password
- Type: System.String
The password to generate a hash value for.
The password hash is generated with the RFC 2898 algorithm using a 128-bit salt, a 256-bit subkey, and 1000 iterations. The format of the generated hash bytestream is {0x00, salt, subkey}, which is base-64 encoded before it is returned.