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.
Classes
Name | Description | |
---|---|---|
AesCryptoServiceProvider | Performs symmetric encryption and decryption using the Cryptographic Application Programming Interfaces (CAPI) implementation of the Advanced Encryption Standard (AES) algorithm. | |
AsymmetricAlgorithm | Represents the abstract base class from which all implementations of asymmetric algorithms must inherit. | |
CryptographicException | The exception that is thrown when an error occurs during a cryptographic operation. | |
CryptographicUnexpectedOperationException | The exception that is thrown when an unexpected operation occurs during a cryptographic operation. | |
CryptoKey | Represents the key object to use for cryptographic operations. | |
DSACryptoServiceProvider | Defines a wrapper object to access the cryptographic service provider (CSP) implementation of the DSA algorithm. This class cannot be inherited. | |
ECDiffieHellmanCryptoServiceProvider | Provides a wrapper Elliptic Curve Diffie-Hellman key exchange. | |
ECDsaCryptoServiceProvider | Provides the Elliptic Curve Digital Signature Algorithm (ECDSA). | |
HashAlgorithm | Represents the base class from which all implementations of cryptographic hash algorithms must derive. | |
KeyedHashAlgorithm | Computes a hash-based message authentication code (HMAC) using the provided hash function type. | |
KeySizes | Determines the set of valid key sizes for the symmetric cryptographic algorithms. | |
RNGCryptoServiceProvider | Implements a cryptographic Random Number Generator (RNG) using the implementation provided by the cryptographic service provider (CSP). | |
RSACryptoServiceProvider | Performs asymmetric encryption and decryption using the implementation of the RSA algorithm provided by the cryptographic service provider (CSP). | |
SymmetricAlgorithm | Represents the abstract base class from which all implementations of symmetric algorithms must inherit. | |
TripleDESCryptoServiceProvider | Defines a wrapper object to access the cryptographic service provider (CSP) version of the TripleDES algorithm. This class cannot be inherited. |
Interfaces
Name | Description | |
---|---|---|
ICryptoTransform | Defines the basic operations of cryptographic transformations. |
Structures
Name | Description | |
---|---|---|
DSAParameters | Contains the typical parameters for the DSA algorithm. | |
RSAParameters | Represents the standard parameters for the RSA algorithm. |
Enumerations
Name | Description | |
---|---|---|
CipherMode | Specifies the block cipher mode to use for encryption. | |
CryptoKey.KeyClass | Specifies the key class types. | |
CryptoKey.KeyType | Specifies the possible key types. | |
ECDiffieHellmanKeyDerivationFunction | Specifies the key derivation function used to transform the raw secret agreement into key material. | |
HashAlgorithmType | Specifies the types of supported hash algorithms. | |
KeyedHashAlgorithmType | Specifies the types of supported keyed hash algorithms. | |
PaddingMode | Specifies the type of padding to apply when the message data block is shorter than the full number of bytes needed for a cryptographic operation. |