System.Security.Cryptography Namespace

Provides classes that implement cryptographic algorithms such as hashing, random number generation, and encryption.

Classes

Aes

Abstract base class for the Advanced Encryption Standard (AES) algorithm.

AesCryptoServiceProvider

Implements the Advanced Encryption Standard (AES) symmetric encryption algorithm.

AesManaged

Provides a managed implementation of the Advanced Encryption Standard (AES) algorithm.

AsymmetricAlgorithm

Abstract base class for asymmetric encryption algorithms.

CngAlgorithm

Represents a cryptographic next-generation (CNG) algorithm.

CryptographicException

The exception thrown by cryptographic operations.

CryptographicKey

Base class for cryptographic keys.

CryptographicParameters

Abstract base class for cryptographic algorithm parameters.

DSACryptoServiceProvider

Provides an implementation of the Digital Signature Algorithm (DSA).

ECDsa

Abstract base class for Elliptic Curve Digital Signature Algorithm (ECDSA).

HashAlgorithm

Abstract base class for hash algorithms.

MD5

Computes the MD5 hash for the input data.

Pkcs

Provides PKCS#12 (PFX) functionality.

RC2

Abstract base class for the RC2 algorithm.

Rijndael

Abstract base class for the Rijndael symmetric encryption algorithm.

RSA

Abstract base class for the RSA signature algorithm.

RSACryptoServiceProvider

Provides an implementation of the RSA signature algorithm.

SHA1

Computes the SHA1 hash for the input data.

SHA256

Computes the SHA256 hash for the input data.

SHA512

Computes the SHA512 hash for the input data.

SymmetricAlgorithm

Abstract base class for symmetric encryption algorithms.

Interfaces

ICryptoCipher

Represents an object that can perform symmetric encryption or decryption.

ICryptoHash

Represents an object that can compute a cryptographic hash.

ICryptoKey

Represents a cryptographic key.