System.Security.Cryptography Namespace - MSDN - Microsoft [PDF]

The System.Security.Cryptography namespace provides cryptographic services, including secure encoding and decoding of da

14 downloads 51 Views 309KB Size

Recommend Stories


MSDN-AA Available Software List
Forget safety. Live where you fear to live. Destroy your reputation. Be notorious. Rumi

[PDF] Troubleshooting Microsoft Technologies
Never let your sense of morals prevent you from doing what is right. Isaac Asimov

PDF Microsoft Office 2007
Learning never exhausts the mind. Leonardo da Vinci

microsoft project - WordPress.com [PDF]
will demonstrate this capability using our “Order Processing System” project from Example 9.1. ...... Use your imagination and assume that a CPM/PERT network, as shown in the figure at the top of the following page, with the following estimated a

Visual Studio 2013 with MSDN 에디션
Love only grows by sharing. You can only have more for yourself by giving it away to others. Brian

[PDF] Programming Microsoft ASP.NET MVC
Forget safety. Live where you fear to live. Destroy your reputation. Be notorious. Rumi

Barrierefreie PDF aus Microsoft Word
Suffering is a gift. In it is hidden mercy. Rumi

Microsoft Word to PDF Guide
Those who bring sunshine to the lives of others cannot keep it from themselves. J. M. Barrie

[PDF] Exploring Microsoft SharePoint 2013
Don't count the days, make the days count. Muhammad Ali

[PDF] Download Microsoft Excel 2013
You have survived, EVERY SINGLE bad day so far. Anonymous

Idea Transcript


> .NET Framework 4.7, 4.6, and 4.5 > .NET Framework Class Library > System.Security Namespaces

System.Security System.Security.AccessControl

System.Security.Cryptography Namespace .NET Framework (current version)

Other Versions

System.Security.Authentication System.Security.Authentication.Exte ndedProtection System.Security.Authentication.Exte ndedProtection.Configuration System.Security.Claims System.Security.Cryptography Aes Class AesCng Class AesCryptoServiceProvider Class AesManaged Class AsnEncodedData Class AsnEncodedDataCollection Class AsnEncodedDataEnumerator Class AsymmetricAlgorithm Class AsymmetricKeyExchangeDeformatt er Class AsymmetricKeyExchangeFormatter Class AsymmetricSignatureDeformatter Class AsymmetricSignatureFormatter Class CipherMode Enumeration CngAlgorithm Class CngAlgorithmGroup Class CngExportPolicies Enumeration CngKey Class CngKeyBlobFormat Class CngKeyCreationOptions Enumeration CngKeyCreationParameters Class CngKeyHandleOpenOptions Enumeration CngKeyOpenOptions Enumeration CngKeyUsages Enumeration CngProperty Structure CngPropertyCollection Class CngPropertyOptions Enumeration CngProvider Class CngUIPolicy Class CngUIProtectionLevels Enumeration CryptoAPITransform Class CryptoConfig Class CryptographicAttributeObject Class CryptographicAttributeObjectCollec tion Class CryptographicAttributeObjectEnum erator Class CryptographicException Class CryptographicUnexpectedOperation Exception Class CryptoStream Class CryptoStreamMode Enumeration CspKeyContainerInfo Class CspParameters Class CspProviderFlags Enumeration DataProtectionScope Enumeration DataProtector Class DeriveBytes Class DES Class DESCryptoServiceProvider Class DpapiDataProtector Class DSA Class DSACng Class DSACryptoServiceProvider Class DSAParameters Structure DSASignatureDeformatter Class DSASignatureFormatter Class ECCurve Structure ECCurve.ECCurveType Enumeration ECCurve.NamedCurves Class ECDiffieHellman Class ECDiffieHellmanCng Class ECDiffieHellmanCngPublicKey Class ECDiffieHellmanKeyDerivationFun ction Enumeration ECDiffieHellmanPublicKey Class ECDsa Class ECDsaCng Class ECKeyXmlFormat Enumeration ECParameters Structure ECPoint Structure FromBase64Transform Class FromBase64TransformMode Enumeration HashAlgorithm Class HashAlgorithmName Structure HMAC Class HMACMD5 Class HMACRIPEMD160 Class HMACSHA1 Class HMACSHA256 Class HMACSHA384 Class HMACSHA512 Class ICryptoTransform Interface ICspAsymmetricAlgorithm Interface IncrementalHash Class KeyedHashAlgorithm Class KeyNumber Enumeration KeySizes Class MACTripleDES Class ManifestSignatureInformation Class ManifestSignatureInformationCollec tion Class MaskGenerationMethod Class MD5 Class MD5Cng Class MD5CryptoServiceProvider Class MemoryProtectionScope Enumeration Oid Class OidCollection Class OidEnumerator Class OidGroup Enumeration PaddingMode Enumeration PasswordDeriveBytes Class PKCS1MaskGenerationMethod Class ProtectedData Class ProtectedMemory Class RandomNumberGenerator Class RC2 Class RC2CryptoServiceProvider Class Rfc2898DeriveBytes Class Rijndael Class RijndaelManaged Class RijndaelManagedTransform Class RIPEMD160 Class RIPEMD160Managed Class RNGCryptoServiceProvider Class RSA Class RSACng Class RSACryptoServiceProvider Class RSAEncryptionPadding Class RSAEncryptionPaddingMode Enumeration RSAOAEPKeyExchangeDeformatter Class RSAOAEPKeyExchangeFormatter Class RSAParameters Structure RSAPKCS1KeyExchangeDeformatte r Class RSAPKCS1KeyExchangeFormatter Class RSAPKCS1SignatureDeformatter Class RSAPKCS1SignatureFormatter Class RSASignaturePadding Class RSASignaturePaddingMode Enumeration SHA1 Class SHA1Cng Class SHA1CryptoServiceProvider Class SHA1Managed Class SHA256 Class SHA256Cng Class SHA256CryptoServiceProvider Class SHA256Managed Class SHA384 Class SHA384Cng Class SHA384CryptoServiceProvider Class SHA384Managed Class SHA512 Class SHA512Cng Class SHA512CryptoServiceProvider Class SHA512Managed Class SignatureDescription Class SignatureVerificationResult Enumeration StrongNameSignatureInformation Class SymmetricAlgorithm Class ToBase64Transform Class TripleDES Class TripleDESCng Class TripleDESCryptoServiceProvider Class System.Security.Cryptography.Pkcs System.Security.Cryptography.X509 Certificates System.Security.Cryptography.Xml System.Security.Permissions System.Security.Policy System.Security.Principal System.Security.RightsManagement Note The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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.

Classes Class

Description

Aes

Represents the abstract base class from which all implementations of the Advanced Encryption Standard (AES) must inherit.

AesCng

Provides a Cryptography Next Generation (CNG) implementation of the Advanced Encryption Standard (AES) algorithm.

AesCryptoServiceProvider

Performs symmetric encryption and decryption using the Cryptographic Application Programming Interfaces (CAPI) implementation of the Advanced Encryption Standard (AES) algorithm.

AesManaged

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

AsnEncodedData

Represents Abstract Syntax Notation One (ASN.1)-encoded data.

AsnEncodedDataCollection

Represents a collection of AsnEncodedData objects. This class cannot be inherited.

AsnEncodedDataEnumerator

Provides the ability to navigate through an AsnEncodedDataCollection object. This class cannot be inherited.

AsymmetricAlgorithm

Represents the abstract base class from which all implementations of asymmetric algorithms must inherit.

AsymmetricKeyExchangeDefor matter

Represents the base class from which all asymmetric key exchange deformatters derive.

AsymmetricKeyExchangeForm atter

Represents the base class from which all asymmetric key exchange formatters derive.

AsymmetricSignatureDeformatt er

Represents the abstract base class from which all implementations of asymmetric signature deformatters derive.

AsymmetricSignatureFormatter

Represents the base class from which all implementations of asymmetric signature formatters derive.

CngAlgorithm

Encapsulates the name of an encryption algorithm.

CngAlgorithmGroup

Encapsulates the name of an encryption algorithm group.

CngKey

Defines the core functionality for keys that are used with Cryptography Next Generation (CNG) objects.

CngKeyBlobFormat

Specifies a key BLOB format for use with Microsoft Cryptography Next Generation (CNG) objects.

CngKeyCreationParameters

Contains advanced properties for key creation.

CngPropertyCollection

Provides a strongly typed collection of Cryptography Next Generation (CNG) properties.

CngProvider

Encapsulates the name of a key storage provider (KSP) for use with Cryptography Next Generation (CNG) objects.

CngUIPolicy

Encapsulates optional configuration parameters for the user interface (UI) that Cryptography Next Generation (CNG) displays when you access a protected key.

CryptoAPITransform

Performs a cryptographic transformation of data. This class cannot be inherited.

CryptoConfig

Accesses the cryptography configuration information.

CryptographicAttributeObject

Contains a type and a collection of values associated with that type.

CryptographicAttributeObjectCo llection

Contains a set of CryptographicAttributeObject objects.

CryptographicAttributeObjectEn umerator

Provides enumeration functionality for the CryptographicAttributeObjectCollection collection. This class cannot be inherited.

CryptographicException

The exception that is thrown when an error occurs during a cryptographic operation.

CryptographicUnexpectedOper ationException

The exception that is thrown when an unexpected operation occurs during a cryptographic operation.

CryptoStream

Defines a stream that links data streams to cryptographic transformations.

CspKeyContainerInfo

Provides additional information about a cryptographic key pair. This class cannot be inherited.

CspParameters

Contains parameters that are passed to the cryptographic service provider (CSP) that performs cryptographic computations. This class cannot be inherited.

DataProtector

Provides the base class for data protectors.

DeriveBytes

Represents the abstract base class from which all classes that derive byte sequences of a specified length inherit.

DES

Represents the base class for the Data Encryption Standard (DES) algorithm from which all DES implementations must derive.

DESCryptoServiceProvider

Defines a wrapper object to access the cryptographic service provider (CSP) version of the Data Encryption Standard (DES) algorithm. This class cannot be inherited.

DpapiDataProtector

Provides simple data protection methods.

DSA

Represents the abstract base class from which all implementations of the Digital Signature Algorithm (DSA) must inherit.

DSACng

Provides a Cryptography Next Generation (CNG) implementation of the Digital Signature Algorithm (DSA).

DSACryptoServiceProvider

Defines a wrapper object to access the cryptographic service provider (CSP) implementation of the DSA algorithm. This class cannot be inherited.

DSASignatureDeformatter

Verifies a Digital Signature Algorithm (DSA) PKCS#1 v1.5 signature.

DSASignatureFormatter

Creates a Digital Signature Algorithm (DSA) signature.

ECDiffieHellman

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.

ECDiffieHellmanCng

Provides a Cryptography Next Generation (CNG) implementation of the Elliptic Curve Diffie-Hellman (ECDH) algorithm. This class is used to perform cryptographic operations.

ECDiffieHellmanCngPublicKey

Specifies an Elliptic Curve Diffie-Hellman (ECDH) public key for use with the ECDiffieHellmanCng class.

ECDiffieHellmanPublicKey

Provides an abstract base class from which all ECDiffieHellmanCngPublicKey implementations must inherit.

ECDsa

Provides an abstract base class that encapsulates the Elliptic Curve Digital Signature Algorithm (ECDSA).

ECDsaCng

Provides a Cryptography Next Generation (CNG) implementation of the Elliptic Curve Digital Signature Algorithm (ECDSA).

FromBase64Transform

Converts a CryptoStream from base 64.

HashAlgorithm

Represents the base class from which all implementations of cryptographic hash algorithms must derive.

HMAC

Represents the abstract class from which all implementations of Hash-based Message Authentication Code (HMAC) must derive.

HMACMD5

Computes a Hash-based Message Authentication Code (HMAC) by using the MD5 hash function.

HMACRIPEMD160

Computes a Hash-based Message Authentication Code (HMAC) by using the RIPEMD160 hash function.

HMACSHA1

Computes a Hash-based Message Authentication Code (HMAC) using the SHA1 hash function.

HMACSHA256

Computes a Hash-based Message Authentication Code (HMAC) by using the SHA256 hash function.

HMACSHA384

Computes a Hash-based Message Authentication Code (HMAC) using the SHA384 hash function.

HMACSHA512

Computes a Hash-based Message Authentication Code (HMAC) using the SHA512 hash function.

IncrementalHash

Provides support for computing a hash or Hash-based Message Authentication Code (HMAC) value incrementally across several segments.

KeyedHashAlgorithm

Represents the abstract class from which all implementations of keyed hash algorithms must derive.

KeySizes

Determines the set of valid key sizes for the symmetric cryptographic algorithms.

MACTripleDES

Computes a Message Authentication Code (MAC) using TripleDES for the input data CryptoStream.

ManifestSignatureInformation

Provides information for a manifest signature.

ManifestSignatureInformationC ollection

Represents a read-only collection of ManifestSignatureInformation objects.

MaskGenerationMethod

Represents the abstract class from which all mask generator algorithms must derive.

MD5

Represents the abstract class from which all implementations of the MD5 hash algorithm inherit.

MD5Cng

Provides a CNG (Cryptography Next Generation) implementation of the MD5 (Message Digest 5) 128-bit hashing algorithm.

MD5CryptoServiceProvider

Computes the MD5 hash value for the input data using the implementation provided by the cryptographic service provider (CSP). This class cannot be inherited.

ECCurve.NamedCurves

Represents a factory class for creating named curves.

Oid

Represents a cryptographic object identifier. This class cannot be inherited.

OidCollection

Represents a collection of Oid objects. This class cannot be inherited.

OidEnumerator

Provides the ability to navigate through an OidCollection object. This class cannot be inherited.

PasswordDeriveBytes

Derives a key from a password using an extension of the PBKDF1 algorithm.

PKCS1MaskGenerationMethod

Computes masks according to PKCS #1 for use by key exchange algorithms.

ProtectedData

Provides methods for encrypting and decrypting data. This class cannot be inherited.

ProtectedMemory

Provides methods for protecting and unprotecting memory. This class cannot be inherited.

RandomNumberGenerator

Represents the abstract class from which all implementations of cryptographic random number generators derive.

RC2

Represents the base class from which all implementations of the RC2 algorithm must derive.

RC2CryptoServiceProvider

Defines a wrapper object to access the cryptographic service provider (CSP) implementation of the RC2 algorithm. This class cannot be inherited.

Rfc2898DeriveBytes

Implements password-based key derivation functionality, PBKDF2, by using a pseudo-random number generator based on HMACSHA1.

Rijndael

Represents the base class from which all implementations of the Rijndael symmetric encryption algorithm must inherit.

RijndaelManaged

Accesses the managed version of the Rijndael algorithm. This class cannot be inherited.

RijndaelManagedTransform

Performs a cryptographic transformation of data using the Rijndael algorithm. This class cannot be inherited.

RIPEMD160

Represents the abstract class from which all implementations of the MD160 hash algorithm inherit.

RIPEMD160Managed

Computes the RIPEMD160 hash for the input data using the managed library.

RNGCryptoServiceProvider

Implements a cryptographic Random Number Generator (RNG) using the implementation provided by the cryptographic service provider (CSP). This class cannot be inherited.

RSA

Represents the base class from which all implementations of the RSA algorithm inherit.

RSACng

Provides a Cryptography Next Generation (CNG) implementation of the RSA algorithm.

RSACryptoServiceProvider

Performs asymmetric encryption and decryption using the implementation of the RSA algorithm provided by the cryptographic service provider (CSP). This class cannot be inherited.

RSAEncryptionPadding

Specifies the padding mode and parameters to use with RSA encryption or decryption operations.

RSAOAEPKeyExchangeDefor matter

Decrypts Optimal Asymmetric Encryption Padding (OAEP) key exchange data.

RSAOAEPKeyExchangeForma tter

Creates Optimal Asymmetric Encryption Padding (OAEP) key exchange data using RSA.

RSAPKCS1KeyExchangeDefor matter

Decrypts the PKCS #1 key exchange data.

RSAPKCS1KeyExchangeForm atter

Creates the PKCS#1 key exchange data using RSA.

RSAPKCS1SignatureDeformatt er

Verifies an RSA PKCS #1 version 1.5 signature.

RSAPKCS1SignatureFormatter

Creates an RSA PKCS #1 version 1.5 signature.

RSASignaturePadding

Specifies the padding mode and parameters to use with RSA signature creation or verification operations.

SHA1

Computes the SHA1 hash for the input data.

SHA1Cng

Provides a Cryptography Next Generation (CNG) implementation of the Secure Hash Algorithm (SHA).

SHA1CryptoServiceProvider

Computes the SHA1 hash value for the input data using the implementation provided by the cryptographic service provider (CSP). This class cannot be inherited.

SHA1Managed

Computes the SHA1 hash for the input data using the managed library.

SHA256

Computes the SHA256 hash for the input data.

SHA256Cng

Provides a Cryptography Next Generation (CNG) implementation of the Secure Hash Algorithm (SHA) for 256-bit hash values.

SHA256CryptoServiceProvider

Defines a wrapper object to access the cryptographic service provider (CSP) implementation of the SHA256 algorithm.

SHA256Managed

Computes the SHA256 hash for the input data using the managed library.

SHA384

Computes the SHA384 hash for the input data.

SHA384Cng

Provides a Cryptography Next Generation (CNG) implementation of the Secure Hash Algorithm (SHA) for 384-bit hash values.

SHA384CryptoServiceProvider

Defines a wrapper object to access the cryptographic service provider (CSP) implementation of the SHA384 algorithm.

SHA384Managed

Computes the SHA384 hash for the input data using the managed library.

SHA512

Computes the SHA512 hash for the input data.

SHA512Cng

Provides a Cryptography Next Generation (CNG) implementation of the Secure Hash Algorithm (SHA) for 512-bit hash values.

SHA512CryptoServiceProvider

Defines a wrapper object to access the cryptographic service provider (CSP) implementation of the SHA512 algorithm.

SHA512Managed

Computes the SHA512 hash algorithm for the input data using the managed library.

SignatureDescription

Contains information about the properties of a digital signature.

StrongNameSignatureInformati on

Holds the strong name signature information for a manifest.

SymmetricAlgorithm

Represents the abstract base class from which all implementations of symmetric algorithms must inherit.

ToBase64Transform

Converts a CryptoStream to base 64.

TripleDES

Represents the base class for Triple Data Encryption Standard algorithms from which all TripleDES implementations must derive.

TripleDESCng

Provides a Cryptography Next Generation (CNG) implementation of the Triple Data Encryption Standard (3DES) algorithm.

TripleDESCryptoServiceProvid er

Defines a wrapper object to access the cryptographic service provider (CSP) version of the TripleDES algorithm. This class cannot be inherited.

Structures Structure

Description

CngProperty

Encapsulates a property of a Cryptography Next Generation (CNG) key or provider.

DSAParameters

Contains the typical parameters for the DSA algorithm.

ECCurve

Represents an elliptic curve.

ECParameters

Represents the standard parameters for the elliptic curve cryptography (ECC) algorithm.

ECPoint

Represents a (X,Y) coordinate pair for elliptic curve cryptography (ECC) structures.

HashAlgorithmName

Specifies the name of a cryptographic hash algorithm.

RSAParameters

Represents the standard parameters for the RSA algorithm.

Interfaces Interface

Description

ICryptoTransform

Defines the basic operations of cryptographic transformations.

ICspAsymmetricAlgori thm

Defines methods that allow an AsymmetricAlgorithm class to enumerate key container information, and import and export Microsoft Cryptographic API (CAPI)– compatible key blobs.

Enumerations Enumeration

Description

CipherMode

Specifies the block cipher mode to use for encryption.

CngExportPolicies

Specifies the key export policies for a key.

CngKeyCreationOptions

Specifies options used for key creation.

CngKeyHandleOpenOptions

Specifies options for opening key handles.

CngKeyOpenOptions

Specifies options for opening a key.

CngKeyUsages

Specifies the cryptographic operations that a Cryptography Next Generation (CNG) key may be used with.

CngPropertyOptions

Specifies Cryptography Next Generation (CNG) key property options.

CngUIProtectionLevels

Specifies the protection level for the key in user interface (UI) prompting scenarios.

CryptoStreamMode

Specifies the mode of a cryptographic stream.

CspProviderFlags

Specifies flags that modify the behavior of the cryptographic service providers (CSP).

DataProtectionScope

Specifies the scope of the data protection to be applied by the Protect method.

ECCurve.ECCurveType

Indicates how to interpret the data contained in an ECCurve object.

ECDiffieHellmanKeyDerivationFunctio n

Specifies the key derivation function that the ECDiffieHellmanCng class will use to convert secret agreements into key material.

ECKeyXmlFormat

Defines XML serialization formats for elliptic curve keys.

FromBase64TransformMode

Specifies whether white space should be ignored in the base 64 transformation.

KeyNumber

Specifies whether to create an asymmetric signature key or an asymmetric exchange key.

MemoryProtectionScope

Specifies the scope of memory protection to be applied by the Protect method.

OidGroup

Identifies Windows cryptographic object identifier (OID) groups.

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.

RSAEncryptionPaddingMode

Specifies the padding mode to use with RSA encryption or decryption operations.

RSASignaturePaddingMode

Specifies the padding mode to use with RSA signature creation or verification operations.

SignatureVerificationResult

Specifies most of the result codes for signature verification.

Return to top Print Share

IN THIS ARTICLE Classes Structures Interfaces Enumerations

Is this page helpful?

Dev centers Windows Office Visual Studio Microsoft Azure



Yes



No

Learning resources

Community

Support

Microsoft Virtual Academy

Forums

Self support

Channel 9

Blogs

MSDN Magazine

Codeplex

Programs BizSpark (for startups) Microsoft Imagine (for students)

More...

United States (English)

Newsletter

Privacy & cookies

Terms of use

Trademarks

© 2017 Microsoft

Smile Life

When life gives you a hundred reasons to cry, show life that you have a thousand reasons to smile

Get in touch

© Copyright 2015 - 2024 PDFFOX.COM - All rights reserved.