Crypto Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides methods to generate hash values and encrypt passwords or other sensitive data.
public static class Crypto
type Crypto = class
Public Class Crypto
- Inheritance
-
Crypto
Methods
GenerateSalt(Int32) |
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(String) |
Returns an RFC 2898 hash value for the specified password. |
SHA1(String) |
Returns a SHA-1 hash value for the specified string. |
SHA256(String) |
Returns a SHA-256 hash value for the specified string. |
VerifyHashedPassword(String, String) |
Determines whether the specified RFC 2898 hash and password are a cryptographic match. |