Export (0) Print
Expand All
Expand Minimize

System.Security.Cryptography Namespace

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
Public classAsnEncodedDataRepresents Abstract Syntax Notation One (ASN.1)-encoded data.
Public classAsnEncodedDataCollectionRepresents a collection of AsnEncodedData objects. This class cannot be inherited.
Public classAsnEncodedDataEnumeratorProvides the ability to navigate through an AsnEncodedDataCollection object. This class cannot be inherited.
Public classAsymmetricAlgorithmRepresents the abstract base class from which all implementations of asymmetric algorithms must inherit.
Public classAsymmetricKeyExchangeDeformatterRepresents the base class from which all asymmetric key exchange deformatters derive.
Public classAsymmetricKeyExchangeFormatterRepresents the base class from which all asymmetric key exchange formatters derive.
Public classAsymmetricSignatureDeformatterRepresents the abstract base class from which all implementations of asymmetric signature deformatters derive.
Public classAsymmetricSignatureFormatterRepresents the base class from which all implementations of asymmetric signature formatters derive.
Public classCryptoAPITransformPerforms a cryptographic transformation of data. This class cannot be inherited.
Public classCryptoConfigAccesses the cryptography configuration information.
Public classCryptographicAttributeObjectContains a type and a collection of values associated with that type.
Public classCryptographicAttributeObjectCollectionContains a set of CryptographicAttributeObject objects.
Public classCryptographicAttributeObjectEnumeratorProvides enumeration functionality for the CryptographicAttributeObjectCollection collection. This class cannot be inherited.
Public classCryptographicExceptionThe exception that is thrown when an error occurs during a cryptographic operation.
Public classCryptographicUnexpectedOperationExceptionThe exception that is thrown when an unexpected operation occurs during a cryptographic operation.
Public classCryptoStreamDefines a stream that links data streams to cryptographic transformations.
Public classCspKeyContainerInfoProvides additional information about a cryptographic key pair. This class cannot be inherited.
Public classCspParametersContains parameters that are passed to the cryptographic service provider (CSP) that performs cryptographic computations. This class cannot be inherited.
Public classDeriveBytesRepresents the abstract base class from which all classes that derive byte sequences of a specified length inherit.
Public classDESRepresents the base class for the Data Encryption Standard (DES) algorithm from which all DES implementations must derive.
Public classDESCryptoServiceProviderDefines a wrapper object to access the cryptographic service provider (CSP) version of the Data Encryption Standard (DES) algorithm. This class cannot be inherited.
Public classDSARepresents the abstract base class from which all implementations of the Digital Signature Algorithm (DSA) must inherit.
Public classDSACryptoServiceProviderDefines a wrapper object to access the cryptographic service provider (CSP) implementation of the DSA algorithm. This class cannot be inherited.
Public classDSASignatureDeformatterVerifies a Digital Signature Algorithm (DSA) PKCS#1 v1.5 signature.
Public classDSASignatureFormatterCreates a Digital Signature Algorithm (DSA) signature.
Public classFromBase64TransformConverts a CryptoStream from base 64.
Public classHashAlgorithmRepresents the base class from which all implementations of cryptographic hash algorithms must derive.
Public classHMACRepresents the abstract class from which all implementations of Hash-based Message Authentication Code (HMAC) must derive.
Public classHMACMD5Computes a Hash-based Message Authentication Code (HMAC) using the MD5 hash function.
Public classHMACRIPEMD160Computes a Hash-based Message Authentication Code (HMAC) using the RIPEMD160 hash function.
Public classHMACSHA1Computes a Hash-based Message Authentication Code (HMAC) using the SHA1 hash function.
Public classHMACSHA256Computes a Hash-based Message Authentication Code (HMAC) using the SHA256 hash function.
Public classHMACSHA384Computes a Hash-based Message Authentication Code (HMAC) using the SHA384 hash function.
Public classHMACSHA512Computes a Hash-based Message Authentication Code (HMAC) using the SHA512 hash function.
Public classKeyedHashAlgorithmRepresents the abstract class from which all implementations of keyed hash algorithms must derive.
Public classKeySizesDetermines the set of valid key sizes for the symmetric cryptographic algorithms.
Public classMACTripleDESComputes a Message Authentication Code (MAC) using TripleDES for the input data CryptoStream.
Public classMaskGenerationMethodRepresents the abstract class from which all mask generator algorithms must derive.
Public classMD5Represents the abstract class from which all implementations of the MD5 hash algorithm inherit.
Public classMD5CryptoServiceProviderComputes the MD5 hash value for the input data using the implementation provided by the cryptographic service provider (CSP). This class cannot be inherited.
Public classOidRepresents a cryptographic object identifier. This class cannot be inherited.
Public classOidCollectionRepresents a collection of Oid objects. This class cannot be inherited.
Public classOidEnumeratorProvides the ability to navigate through an OidCollection object. This class cannot be inherited.
Public classPasswordDeriveBytesDerives a key from a password using an extension of the PBKDF1 algorithm.
Public classPKCS1MaskGenerationMethodComputes masks according to PKCS #1 for use by key exchange algorithms.
Public classProtectedDataProvides methods for protecting and unprotecting data. This class cannot be inherited.
Public classProtectedMemoryProvides methods for protecting and unprotecting memory. This class cannot be inherited.
Public classRandomNumberGeneratorRepresents the abstract class from which all implementations of cryptographic random number generators derive.
Public classRC2Represents the base class from which all implementations of the RC2 algorithm must derive.
Public classRC2CryptoServiceProviderDefines a wrapper object to access the cryptographic service provider (CSP) implementation of the RC2 algorithm. This class cannot be inherited.
Public classRfc2898DeriveBytesImplements password-based key derivation functionality, PBKDF2, by using a pseudo-random number generator based on HMACSHA1.
Public classRijndaelRepresents the base class from which all implementations of the Rijndael symmetric encryption algorithm must inherit.
Public classRijndaelManagedAccesses the managed version of the Rijndael algorithm. This class cannot be inherited.
Public classRijndaelManagedTransformPerforms a cryptographic transformation of data using the Rijndael algorithm. This class cannot be inherited.
Public classRIPEMD160Represents the abstract class from which all implementations of the MD160 hash algorithm inherit.
Public classRIPEMD160ManagedComputes the RIPEMD160 hash for the input data using the managed library.
Public classRNGCryptoServiceProviderImplements a cryptographic Random Number Generator (RNG) using the implementation provided by the cryptographic service provider (CSP). This class cannot be inherited.
Public classRSARepresents the base class from which all implementations of the RSA algorithm inherit.
Public classRSACryptoServiceProviderPerforms asymmetric encryption and decryption using the implementation of the RSA algorithm provided by the cryptographic service provider (CSP). This class cannot be inherited.
Public classRSAOAEPKeyExchangeDeformatterDecrypts Optimal Asymmetric Encryption Padding (OAEP) key exchange data.
Public classRSAOAEPKeyExchangeFormatterCreates Optimal Asymmetric Encryption Padding (OAEP) key exchange data using RSA.
Public classRSAPKCS1KeyExchangeDeformatterDecrypts the PKCS #1 key exchange data.
Public classRSAPKCS1KeyExchangeFormatterCreates the PKCS#1 key exchange data using RSA.
Public classRSAPKCS1SignatureDeformatterVerifies an RSA PKCS #1 version 1.5 signature.
Public classRSAPKCS1SignatureFormatterCreates an RSA PKCS #1 version 1.5 signature.
Public classSafeHandle 
Public classSHA1Computes the SHA1 hash for the input data.
Public classSHA1CryptoServiceProviderComputes the SHA1 hash value for the input data using the implementation provided by the cryptographic service provider (CSP). This class cannot be inherited.
Public classSHA1ManagedComputes the SHA1 hash for the input data using the managed library.
Public classSHA256Computes the SHA256 hash for the input data.
Public classSHA256ManagedComputes the SHA256 hash for the input data using the managed library.
Public classSHA384Computes the SHA384 hash for the input data.
Public classSHA384ManagedComputes the SHA384 hash for the input data using the managed library.
Public classSHA512Computes the SHA512 hash for the input data.
Public classSHA512ManagedComputes the SHA512 hash algorithm for the input data using the managed library.
Public classSignatureDescriptionContains information about the properties of a digital signature.
Public classSymmetricAlgorithmRepresents the abstract base class from which all implementations of symmetric algorithms must inherit.
Public classToBase64TransformConverts a CryptoStream to base 64.
Public classTripleDESRepresents the base class for Triple Data Encryption Standard algorithms from which all TripleDES implementations must derive.
Public classTripleDESCryptoServiceProviderDefines a wrapper object to access the cryptographic service provider (CSP) version of the TripleDES algorithm. This class cannot be inherited.

 InterfaceDescription
Public interfaceICryptoTransformDefines the basic operations of cryptographic transformations.
Public interfaceICspAsymmetricAlgorithmDefines methods that allow an AsymmetricAlgorithm class to enumerate key container information, and import and export Microsoft Cryptographic API (CAPI)–compatible key blobs.

 StructureDescription
Public structureDSAParametersContains the typical parameters for the DSA algorithm.
Public structureRSAParametersRepresents the standard parameters for the RSA algorithm.

 EnumerationDescription
Public enumerationCipherModeSpecifies the block cipher mode to use for encryption.
Public enumerationCryptoStreamModeSpecifies the mode of a cryptographic stream.
Public enumerationCspProviderFlagsSpecifies flags that modify the behavior of the cryptographic service providers (CSP).
Public enumerationDataProtectionScopeSpecifies the scope of the data protection to be applied by the Protect method.
Public enumerationFromBase64TransformModeSpecifies whether white space should be ignored in the base 64 transformation.
Public enumerationKeyNumberSpecifies whether to create an asymmetric signature key or an asymmetric exchange key.
Public enumerationMemoryProtectionScopeSpecifies the scope of memory protection to be applied by the Protect method.
Public enumerationPaddingModeSpecifies the type of padding to apply when the message data block is shorter than the full number of bytes needed for a cryptographic operation.

Community Additions

ADD
Show:
© 2014 Microsoft