Share via


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
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.

Applies to