Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
System.Security.Cryptography Namespace

Updated: November 2007

The System.Security.Cryptography namespace provides cryptographic services, including secure encoding and decoding of data, as well as many other operations, such as hashing, random number generation, and message authentication. For more information, see Cryptographic Services.

  ClassDescription
9eat8fht.pubclass(en-us,VS.90).gifAes Represents the abstract base class from which all implementations of the Advanced Encryption Standard (AES) must inherit.
9eat8fht.pubclass(en-us,VS.90).gifAesCryptoServiceProvider Performs symmetric encryption and decryption using the Cryptographic Application Programming Interfaces (CAPI) implementation of the Advanced Encryption Standard (AES) algorithm.
9eat8fht.pubclass(en-us,VS.90).gifAesManaged Provides a managed implementation of the Advanced Encryption Standard (AES) symmetric algorithm.
9eat8fht.pubclass(en-us,VS.90).gifAsnEncodedData Represents Abstract Syntax Notation One (ASN.1)-encoded data.
9eat8fht.pubclass(en-us,VS.90).gifAsnEncodedDataCollection Represents a collection of AsnEncodedData objects. This class cannot be inherited.
9eat8fht.pubclass(en-us,VS.90).gifAsnEncodedDataEnumerator Provides the ability to navigate through an AsnEncodedDataCollection object. This class cannot be inherited.
9eat8fht.pubclass(en-us,VS.90).gifAsymmetricAlgorithm Represents the abstract base class from which all implementations of asymmetric algorithms must inherit.
9eat8fht.pubclass(en-us,VS.90).gifAsymmetricKeyExchangeDeformatter Represents the base class from which all asymmetric key exchange deformatters derive.
9eat8fht.pubclass(en-us,VS.90).gifAsymmetricKeyExchangeFormatter Represents the base class from which all asymmetric key exchange formatters derive.
9eat8fht.pubclass(en-us,VS.90).gifAsymmetricSignatureDeformatter Represents the abstract base class from which all implementations of asymmetric signature deformatters derive.
9eat8fht.pubclass(en-us,VS.90).gifAsymmetricSignatureFormatter Represents the base class from which all implementations of asymmetric signature formatters derive.
9eat8fht.pubclass(en-us,VS.90).gifCngAlgorithm Encapsulates the name of an encryption algorithm.
9eat8fht.pubclass(en-us,VS.90).gifCngAlgorithmGroup Encapsulates the name of an encryption algorithm group.
9eat8fht.pubclass(en-us,VS.90).gifCngKey Defines the core functionality for keys that are used with Cryptography Next Generation (CNG) objects.
9eat8fht.pubclass(en-us,VS.90).gifCngKeyBlobFormat Specifies a key BLOB format for use with Microsoft Cryptography Next Generation (CNG) objects.
9eat8fht.pubclass(en-us,VS.90).gifCngKeyCreationParameters Contains advanced properties for key creation.
9eat8fht.pubclass(en-us,VS.90).gifCngPropertyCollection Provides a strongly typed collection of Cryptography Next Generation (CNG) properties.
9eat8fht.pubclass(en-us,VS.90).gifCngProvider Encapsulates the name of a key storage provider (KSP) for use with Cryptography Next Generation (CNG) objects.
9eat8fht.pubclass(en-us,VS.90).gifCngUIPolicy Encapsulates optional configuration parameters for the user interface (UI) that Cryptography Next Generation (CNG) displays when you access a protected key.
9eat8fht.pubclass(en-us,VS.90).gifCryptoAPITransform Performs a cryptographic transformation of data. This class cannot be inherited.
9eat8fht.pubclass(en-us,VS.90).gifCryptoConfig Accesses the cryptography configuration information.
9eat8fht.pubclass(en-us,VS.90).gifCryptographicAttributeObject Contains a type and a collection of values associated with that type.
9eat8fht.pubclass(en-us,VS.90).gifCryptographicAttributeObjectCollection Contains a set of CryptographicAttributeObject objects.
9eat8fht.pubclass(en-us,VS.90).gifCryptographicAttributeObjectEnumerator Provides enumeration functionality for the CryptographicAttributeObjectCollection collection. This class cannot be inherited.
9eat8fht.pubclass(en-us,VS.90).gifCryptographicException The exception that is thrown when an error occurs during a cryptographic operation.
9eat8fht.pubclass(en-us,VS.90).gifCryptographicUnexpectedOperationException The exception that is thrown when an unexpected operation occurs during a cryptographic operation.
9eat8fht.pubclass(en-us,VS.90).gifCryptoStream Defines a stream that links data streams to cryptographic transformations.
9eat8fht.pubclass(en-us,VS.90).gifCspKeyContainerInfo Provides additional information about a cryptographic key pair. This class cannot be inherited.
9eat8fht.pubclass(en-us,VS.90).gifCspParameters Contains parameters that are passed to the cryptographic service provider (CSP) that performs cryptographic computations. This class cannot be inherited.
9eat8fht.pubclass(en-us,VS.90).gifDeriveBytes Represents the abstract base class from which all classes that derive byte sequences of a specified length inherit.
9eat8fht.pubclass(en-us,VS.90).gifDES Represents the base class for the Data Encryption Standard (DES) algorithm from which all DES implementations must derive.
9eat8fht.pubclass(en-us,VS.90).gifDESCryptoServiceProvider Defines a wrapper object to access the cryptographic service provider (CSP) version of the Data Encryption Standard (DES) algorithm. This class cannot be inherited.
9eat8fht.pubclass(en-us,VS.90).gifDSA Represents the abstract base class from which all implementations of the Digital Signature Algorithm (DSA) must inherit.
9eat8fht.pubclass(en-us,VS.90).gifDSACryptoServiceProvider Defines a wrapper object to access the cryptographic service provider (CSP) implementation of the DSA algorithm. This class cannot be inherited.
9eat8fht.pubclass(en-us,VS.90).gifDSASignatureDeformatter Verifies a Digital Signature Algorithm (DSA) PKCS#1 v1.5 signature.
9eat8fht.pubclass(en-us,VS.90).gifDSASignatureFormatter Creates a Digital Signature Algorithm (DSA) signature.
9eat8fht.pubclass(en-us,VS.90).gifECDiffieHellman Provides an abstract base class that Elliptic Curve Diffie-Hellman (ECDH) algorithm implementations can derive from. This class provides the basic set of operations that all ECDH implementations must support.
9eat8fht.pubclass(en-us,VS.90).gifECDiffieHellmanCng Provides a Cryptography Next Generation (CNG) implementation of the Elliptic Curve Diffie-Hellman (ECDH) algorithm. This class is used to perform cryptographic operations.
9eat8fht.pubclass(en-us,VS.90).gifECDiffieHellmanCngPublicKey Specifies an Elliptic Curve Diffie-Hellman (ECDH) public key for use with the ECDiffieHellmanCng class.
9eat8fht.pubclass(en-us,VS.90).gifECDiffieHellmanPublicKey Provides an abstract base class from which all ECDiffieHellmanCngPublicKey implementations must inherit.
9eat8fht.pubclass(en-us,VS.90).gifECDsa Provides an abstract base class that encapsulates the Elliptic Curve Digital Signature Algorithm (ECDSA).
9eat8fht.pubclass(en-us,VS.90).gifECDsaCng Provides a Cryptography Next Generation (CNG) implementation of the Elliptic Curve Digital Signature Algorithm (ECDSA).
9eat8fht.pubclass(en-us,VS.90).gifFromBase64Transform Converts a CryptoStream from base 64.
9eat8fht.pubclass(en-us,VS.90).gifHashAlgorithm Represents the base class from which all implementations of cryptographic hash algorithms must derive.
9eat8fht.pubclass(en-us,VS.90).gifHMAC Represents the abstract class from which all implementations of Hash-based Message Authentication Code (HMAC) must derive.
9eat8fht.pubclass(en-us,VS.90).gifHMACMD5 Computes a Hash-based Message Authentication Code (HMAC) using the MD5 hash function.
9eat8fht.pubclass(en-us,VS.90).gifHMACRIPEMD160 Computes a Hash-based Message Authentication Code (HMAC) using the RIPEMD160 hash function.
9eat8fht.pubclass(en-us,VS.90).gifHMACSHA1 Computes a Hash-based Message Authentication Code (HMAC) using the SHA1 hash function.
9eat8fht.pubclass(en-us,VS.90).gifHMACSHA256 Computes a Hash-based Message Authentication Code (HMAC) using the SHA256 hash function.
9eat8fht.pubclass(en-us,VS.90).gifHMACSHA384 Computes a Hash-based Message Authentication Code (HMAC) using the SHA384 hash function.
9eat8fht.pubclass(en-us,VS.90).gifHMACSHA512 Computes a Hash-based Message Authentication Code (HMAC) using the SHA512 hash function.
9eat8fht.pubclass(en-us,VS.90).gifKeyedHashAlgorithm Represents the abstract class from which all implementations of keyed hash algorithms must derive.
9eat8fht.pubclass(en-us,VS.90).gifKeySizes Determines the set of valid key sizes for the symmetric cryptographic algorithms.
9eat8fht.pubclass(en-us,VS.90).gifMACTripleDES Computes a Message Authentication Code (MAC) using TripleDES for the input data CryptoStream.
9eat8fht.pubclass(en-us,VS.90).gifManifestSignatureInformation Provides information for a manifest signature.
9eat8fht.pubclass(en-us,VS.90).gifManifestSignatureInformationCollection Represents a read-only collection of ManifestSignatureInformation objects. 
9eat8fht.pubclass(en-us,VS.90).gifMaskGenerationMethod Represents the abstract class from which all mask generator algorithms must derive.
9eat8fht.pubclass(en-us,VS.90).gifMD5 Represents the abstract class from which all implementations of the MD5 hash algorithm inherit.
9eat8fht.pubclass(en-us,VS.90).gifMD5Cng Provides a CNG (Cryptography Next Generation) implementation of the MD5 (Message Digest 5) 128-bit hashing algorithm.
9eat8fht.pubclass(en-us,VS.90).gifMD5CryptoServiceProvider Computes the MD5 hash value for the input data using the implementation provided by the cryptographic service provider (CSP). This class cannot be inherited.
9eat8fht.pubclass(en-us,VS.90).gifOid Represents a cryptographic object identifier. This class cannot be inherited.
9eat8fht.pubclass(en-us,VS.90).gifOidCollection Represents a collection of Oid objects. This class cannot be inherited.
9eat8fht.pubclass(en-us,VS.90).gifOidEnumerator Provides the ability to navigate through an OidCollection object. This class cannot be inherited.
9eat8fht.pubclass(en-us,VS.90).gifPasswordDeriveBytes Derives a key from a password using an extension of the PBKDF1 algorithm.
9eat8fht.pubclass(en-us,VS.90).gifPKCS1MaskGenerationMethod Computes masks according to PKCS #1 for use by key exchange algorithms.
9eat8fht.pubclass(en-us,VS.90).gifProtectedData Provides methods for protecting and unprotecting data. This class cannot be inherited.
9eat8fht.pubclass(en-us,VS.90).gifProtectedMemory Provides methods for protecting and unprotecting memory. This class cannot be inherited.
9eat8fht.pubclass(en-us,VS.90).gifRandomNumberGenerator Represents the abstract class from which all implementations of cryptographic random number generators derive.
9eat8fht.pubclass(en-us,VS.90).gifRC2 Represents the base class from which all implementations of the RC2 algorithm must derive.
9eat8fht.pubclass(en-us,VS.90).gifRC2CryptoServiceProvider Defines a wrapper object to access the cryptographic service provider (CSP) implementation of the RC2 algorithm. This class cannot be inherited.
9eat8fht.pubclass(en-us,VS.90).gifRfc2898DeriveBytes Implements password-based key derivation functionality, PBKDF2, by using a pseudo-random number generator based on HMACSHA1.
9eat8fht.pubclass(en-us,VS.90).gifRijndael Represents the base class from which all implementations of the Rijndael symmetric encryption algorithm must inherit.
9eat8fht.pubclass(en-us,VS.90).gifRijndaelManaged Accesses the managed version of the Rijndael algorithm. This class cannot be inherited.
9eat8fht.pubclass(en-us,VS.90).gifRijndaelManagedTransform Performs a cryptographic transformation of data using the Rijndael algorithm. This class cannot be inherited.
9eat8fht.pubclass(en-us,VS.90).gifRIPEMD160 Represents the abstract class from which all implementations of the MD160 hash algorithm inherit.
9eat8fht.pubclass(en-us,VS.90).gifRIPEMD160Managed Computes the RIPEMD160 hash for the input data using the managed library.
9eat8fht.pubclass(en-us,VS.90).gifRNGCryptoServiceProvider Implements a cryptographic Random Number Generator (RNG) using the implementation provided by the cryptographic service provider (CSP). This class cannot be inherited.
9eat8fht.pubclass(en-us,VS.90).gifRSA Represents the base class from which all implementations of the RSA algorithm inherit.
9eat8fht.pubclass(en-us,VS.90).gifRSACryptoServiceProvider Performs asymmetric encryption and decryption using the implementation of the RSA algorithm provided by the cryptographic service provider (CSP). This class cannot be inherited.
9eat8fht.pubclass(en-us,VS.90).gifRSAOAEPKeyExchangeDeformatter Decrypts Optimal Asymmetric Encryption Padding (OAEP) key exchange data.
9eat8fht.pubclass(en-us,VS.90).gifRSAOAEPKeyExchangeFormatter Creates Optimal Asymmetric Encryption Padding (OAEP) key exchange data using RSA.
9eat8fht.pubclass(en-us,VS.90).gifRSAPKCS1KeyExchangeDeformatter Decrypts the PKCS #1 key exchange data.
9eat8fht.pubclass(en-us,VS.90).gifRSAPKCS1KeyExchangeFormatter Creates the PKCS#1 key exchange data using RSA.
9eat8fht.pubclass(en-us,VS.90).gifRSAPKCS1SignatureDeformatter Verifies an RSA PKCS #1 version 1.5 signature.
9eat8fht.pubclass(en-us,VS.90).gifRSAPKCS1SignatureFormatter Creates an RSA PKCS #1 version 1.5 signature.
9eat8fht.pubclass(en-us,VS.90).gifSHA1 Computes the SHA1 hash for the input data.
9eat8fht.pubclass(en-us,VS.90).gifSHA1Cng Provides a Cryptography Next Generation (CNG) implementation of the Secure Hash Algorithm (SHA).
9eat8fht.pubclass(en-us,VS.90).gifSHA1CryptoServiceProvider Computes the SHA1 hash value for the input data using the implementation provided by the cryptographic service provider (CSP). This class cannot be inherited.
9eat8fht.pubclass(en-us,VS.90).gifSHA1Managed Computes the SHA1 hash for the input data using the managed library.
9eat8fht.pubclass(en-us,VS.90).gifSHA256 Computes the SHA256 hash for the input data.
9eat8fht.pubclass(en-us,VS.90).gifSHA256Cng Provides a Cryptography Next Generation (CNG) implementation of the Secure Hash Algorithm (SHA) for 256-bit hash values.
9eat8fht.pubclass(en-us,VS.90).gifSHA256CryptoServiceProvider Defines a wrapper object to access the cryptographic service provider (CSP) implementation of the SHA256 algorithm.
9eat8fht.pubclass(en-us,VS.90).gifSHA256Managed Computes the SHA256 hash for the input data using the managed library.
9eat8fht.pubclass(en-us,VS.90).gifSHA384 Computes the SHA384 hash for the input data.
9eat8fht.pubclass(en-us,VS.90).gifSHA384Cng Provides a Cryptography Next Generation (CNG) implementation of the Secure Hash Algorithm (SHA) for 384-bit hash values.
9eat8fht.pubclass(en-us,VS.90).gifSHA384CryptoServiceProvider Defines a wrapper object to access the cryptographic service provider (CSP) implementation of the SHA384 algorithm.
9eat8fht.pubclass(en-us,VS.90).gifSHA384Managed Computes the SHA384 hash for the input data using the managed library.
9eat8fht.pubclass(en-us,VS.90).gifSHA512 Computes the SHA512 hash for the input data.
9eat8fht.pubclass(en-us,VS.90).gifSHA512Cng Provides a Cryptography Next Generation (CNG) implementation of the Secure Hash Algorithm (SHA) for 512-bit hash values.
9eat8fht.pubclass(en-us,VS.90).gifSHA512CryptoServiceProvider Defines a wrapper object to access the cryptographic service provider (CSP) implementation of the SHA512 algorithm.
9eat8fht.pubclass(en-us,VS.90).gifSHA512Managed Computes the SHA512 hash algorithm for the input data using the managed library.
9eat8fht.pubclass(en-us,VS.90).gifSignatureDescription Contains information about the properties of a digital signature.
9eat8fht.pubclass(en-us,VS.90).gifStrongNameSignatureInformation Holds the strong name signature information for a manifest.
9eat8fht.pubclass(en-us,VS.90).gifSymmetricAlgorithm Represents the abstract base class from which all implementations of symmetric algorithms must inherit.
9eat8fht.pubclass(en-us,VS.90).gifToBase64Transform Converts a CryptoStream to base 64.
9eat8fht.pubclass(en-us,VS.90).gifTripleDES Represents the base class for Triple Data Encryption Standard algorithms from which all TripleDES implementations must derive.
9eat8fht.pubclass(en-us,VS.90).gifTripleDESCryptoServiceProvider Defines a wrapper object to access the cryptographic service provider (CSP) version of the TripleDES algorithm. This class cannot be inherited.
  StructureDescription
9eat8fht.pubstructure(en-us,VS.90).gifCngProperty Encapsulates a property of a Cryptography Next Generation (CNG) key or provider.
9eat8fht.pubstructure(en-us,VS.90).gifDSAParameters Contains the typical parameters for the DSA algorithm.
9eat8fht.pubstructure(en-us,VS.90).gifRSAParameters Represents the standard parameters for the RSA algorithm.
  InterfaceDescription
9eat8fht.pubinterface(en-us,VS.90).gifICryptoTransform Defines the basic operations of cryptographic transformations.
9eat8fht.pubinterface(en-us,VS.90).gifICspAsymmetricAlgorithm Defines methods that allow an AsymmetricAlgorithm class to enumerate key container information, and import and export Microsoft Cryptographic API (CAPI)–compatible key blobs.
  EnumerationDescription
9eat8fht.pubenumeration(en-us,VS.90).gifCipherMode Specifies the block cipher mode to use for encryption.
9eat8fht.pubenumeration(en-us,VS.90).gifCngExportPolicies Specifies the key export policies for a key.
9eat8fht.pubenumeration(en-us,VS.90).gifCngKeyCreationOptions Specifies options used for key creation.
9eat8fht.pubenumeration(en-us,VS.90).gifCngKeyHandleOpenOptions Specifies options for opening key handles.
9eat8fht.pubenumeration(en-us,VS.90).gifCngKeyOpenOptions Specifies options for opening a key.
9eat8fht.pubenumeration(en-us,VS.90).gifCngKeyUsages Specifies the cryptographic operations that a Cryptography Next Generation (CNG) key may be used with.
9eat8fht.pubenumeration(en-us,VS.90).gifCngPropertyOptions Specifies Cryptography Next Generation (CNG) key property options.
9eat8fht.pubenumeration(en-us,VS.90).gifCngUIProtectionLevels Specifies the protection level for the key in user interface (UI) prompting scenarios.
9eat8fht.pubenumeration(en-us,VS.90).gifCryptoStreamMode Specifies the mode of a cryptographic stream.
9eat8fht.pubenumeration(en-us,VS.90).gifCspProviderFlags Specifies flags that modify the behavior of the cryptographic service providers (CSP).
9eat8fht.pubenumeration(en-us,VS.90).gifDataProtectionScope Specifies the scope of the data protection to be applied by the Protect method.
9eat8fht.pubenumeration(en-us,VS.90).gifECDiffieHellmanKeyDerivationFunction Specifies the key derivation function that the ECDiffieHellmanCng class will use to convert secret agreements into key material.