Crypto Crypto Crypto Class

Definition

Provides methods to generate hash values and encrypt passwords or other sensitive data.

public static class Crypto
type Crypto = class
Public Class Crypto
Inheritance
CryptoCryptoCrypto

Methods

GenerateSalt(Int32) GenerateSalt(Int32) GenerateSalt(Int32)

Generates a cryptographically strong sequence of random byte values.

Hash(Byte[], String) Hash(Byte[], String) Hash(Byte[], String)

Returns a hash value for the specified byte array.

Hash(String, String) Hash(String, String) Hash(String, String)

Returns a hash value for the specified string.

HashPassword(String) HashPassword(String) HashPassword(String)

Returns an RFC 2898 hash value for the specified password.

SHA1(String) SHA1(String) SHA1(String)

Returns a SHA-1 hash value for the specified string.

SHA256(String) SHA256(String) SHA256(String)

Returns a SHA-256 hash value for the specified string.

VerifyHashedPassword(String, String) VerifyHashedPassword(String, String) VerifyHashedPassword(String, String)

Determines whether the specified RFC 2898 hash and password are a cryptographic match.

Applies to