Crypto Class
Provides methods to generate hash values and encrypt passwords or other sensitive data.
Namespace:
System.Web.Helpers
Assembly: System.Web.Helpers (in System.Web.Helpers.dll)
The Crypto type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | GenerateSalt | Generates a cryptographically strong sequence of random byte values. |
![]() ![]() | Hash(Byte[], String) | Returns a hash value for the specified byte array. |
![]() ![]() | Hash(String, String) | Returns a hash value for the specified string. |
![]() ![]() | HashPassword | Returns an RFC 2898 hash value for the specified password. |
![]() ![]() | SHA1 | Returns a SHA-1 hash value for the specified string. |
![]() ![]() | SHA256 | Returns a SHA-256 hash value for the specified string. |
![]() ![]() | VerifyHashedPassword | Determines whether the specified RFC 2898 hash and password are a cryptographic match. |
