System.Security.Cryptography
MSDN Home
MSDN
MSDN Library
.NET 开发
先前版本
.NET Framework SDK 2.0
Class Library Reference
System.Security.Cryptograph ...
AsnEncodedData 类
AsnEncodedDataCollection 类
AsnEncodedDataEnumerator 类
AsymmetricAlgorithm 类
AsymmetricKeyExchangeDeformatt ...
AsymmetricKeyExchangeFormatter ...
AsymmetricSignatureDeformatter ...
AsymmetricSignatureFormatter 类
CipherMode 枚举
CryptoAPITransform 类
CryptoConfig 类
CryptographicAttributeObject 类
CryptographicAttributeObjectCo ...
CryptographicAttributeObjectEn ...
CryptographicException 类
CryptographicUnexpectedOperati ...
CryptoStream 类
CryptoStreamMode 枚举
CspKeyContainerInfo 类
CspParameters 类
CspProviderFlags 枚举
DataProtectionScope 枚举
DeriveBytes 类
DES 类
DESCryptoServiceProvider 类
DSA 类
DSACryptoServiceProvider 类
DSAParameters 结构
DSASignatureDeformatter 类
DSASignatureFormatter 类
FromBase64Transform 类
FromBase64TransformMode 枚举
HashAlgorithm 类
HMAC 类
HMACMD5 类
HMACRIPEMD160 类
HMACSHA1 类
HMACSHA256 类
HMACSHA384 类
HMACSHA512 类
ICryptoTransform 接口
ICspAsymmetricAlgorithm 接口
KeyedHashAlgorithm 类
KeyNumber 枚举
KeySizes 类
MACTripleDES 类
MaskGenerationMethod 类
MD5 类
MD5CryptoServiceProvider 类
MemoryProtectionScope 枚举
Oid 类
OidCollection 类
OidEnumerator 类
PaddingMode 枚举
PasswordDeriveBytes 类
PKCS1MaskGenerationMethod 类
ProtectedData 类
ProtectedMemory 类
RandomNumberGenerator 类
RC2 类
RC2CryptoServiceProvider 类
Rfc2898DeriveBytes 类
Rijndael 类
RijndaelManaged 类
RijndaelManagedTransform 类
RIPEMD160 类
RIPEMD160Managed 类
RNGCryptoServiceProvider 类
RSA 类
RSACryptoServiceProvider 类
RSAOAEPKeyExchangeDeformatter ...
RSAOAEPKeyExchangeFormatter 类
RSAParameters 结构
RSAPKCS1KeyExchangeDeformatter ...
RSAPKCS1KeyExchangeFormatter 类
RSAPKCS1SignatureDeformatter 类
RSAPKCS1SignatureFormatter 类
SafeHandle 类
SHA1 类
SHA1CryptoServiceProvider 类
SHA1Managed 类
SHA256 类
SHA256Managed 类
SHA384 类
SHA384Managed 类
SHA512 类
SHA512Managed 类
SignatureDescription 类
SymmetricAlgorithm 类
ToBase64Transform 类
TripleDES 类
TripleDESCryptoServiceProvider ...
Class Library Reference
( Default Namespace )
Accessibility
IEHost.Execute
Microsoft.Aspnet.Snapin
Microsoft.Build.BuildEngine
Microsoft.Build.Framework
Microsoft.Build.Tasks
Microsoft.Build.Tasks.Deployme ...
Microsoft.Build.Tasks.Deployme ...
Microsoft.Build.Tasks.Hosting
Microsoft.Build.Utilities
Microsoft.CLRAdmin
Microsoft.CSharp
Microsoft.IE
Microsoft.JScript
Microsoft.JScript.Vsa
Microsoft.SqlServer.Server
Microsoft.VisualBasic
Microsoft.VisualBasic.Applicat ...
Microsoft.VisualBasic.Compiler ...
Microsoft.VisualBasic.Devices
Microsoft.VisualBasic.FileIO
Microsoft.VisualBasic.Logging
Microsoft.VisualBasic.MyServic ...
Microsoft.VisualBasic.MyServic ...
Microsoft.VisualBasic.Vsa
Microsoft.VisualC
Microsoft.Vsa
Microsoft.Vsa.Vb.CodeDOM
Microsoft.Win32
Microsoft.Win32.SafeHandles
Microsoft.WindowsCE.Forms
Microsoft.WindowsMobile.Direct ...
Microsoft.WindowsMobile.Direct ...
Microsoft_VsaVb
System
System.CodeDom
System.CodeDom.Compiler
System.Collections
System.Collections.Generic
System.Collections.ObjectModel
System.Collections.Specialized
System.ComponentModel
System.ComponentModel.Design
System.ComponentModel.Design.D ...
System.ComponentModel.Design.S ...
System.Configuration
System.Configuration.Assemblie ...
System.Configuration.Install
System.Configuration.Internal
System.Configuration.Provider
System.Data
System.Data.Common
System.Data.Design
System.Data.Odbc
System.Data.OleDb
System.Data.OracleClient
System.Data.Sql
System.Data.SqlClient
System.Data.SqlServerCe
System.Data.SqlTypes
System.Deployment.Application
System.Deployment.Internal
System.Diagnostics
System.Diagnostics.CodeAnalysi ...
System.Diagnostics.Design
System.Diagnostics.SymbolStore
System.DirectoryServices
System.DirectoryServices.Activ ...
System.DirectoryServices.Proto ...
System.Drawing
System.Drawing.Design
System.Drawing.Drawing2D
System.Drawing.Imaging
System.Drawing.Printing
System.Drawing.Text
System.EnterpriseServices
System.EnterpriseServices.Comp ...
System.EnterpriseServices.Inte ...
System.Globalization
System.IO
System.IO.Compression
System.IO.IsolatedStorage
System.IO.Ports
System.Management
System.Management.Instrumentat ...
System.Media
System.Messaging
System.Messaging.Design
System.Net
System.Net.Cache
System.Net.Configuration
System.Net.Mail
System.Net.Mime
System.Net.NetworkInformation
System.Net.Security
System.Net.Sockets
System.Reflection
System.Reflection.Emit
System.Resources
System.Resources.Tools
System.Runtime
System.Runtime.CompilerService ...
System.Runtime.ConstrainedExec ...
System.Runtime.Hosting
System.Runtime.InteropServices
System.Runtime.InteropServices ...
System.Runtime.InteropServices ...
System.Runtime.InteropServices ...
System.Runtime.Remoting
System.Runtime.Remoting.Activa ...
System.Runtime.Remoting.Channe ...
System.Runtime.Remoting.Channe ...
System.Runtime.Remoting.Channe ...
System.Runtime.Remoting.Channe ...
System.Runtime.Remoting.Contex ...
System.Runtime.Remoting.Lifeti ...
System.Runtime.Remoting.Messag ...
System.Runtime.Remoting.Metada ...
System.Runtime.Remoting.Metada ...
System.Runtime.Remoting.Metada ...
System.Runtime.Remoting.Proxie ...
System.Runtime.Remoting.Servic ...
System.Runtime.Serialization
System.Runtime.Serialization.F ...
System.Runtime.Serialization.F ...
System.Runtime.Serialization.F ...
System.Runtime.Versioning
System.Security
System.Security.AccessControl
System.Security.Authentication
System.Security.Cryptography
System.Security.Cryptography.P ...
System.Security.Cryptography.X ...
System.Security.Cryptography.X ...
System.Security.Permissions
System.Security.Policy
System.Security.Principal
System.ServiceProcess
System.ServiceProcess.Design
System.Text
System.Text.RegularExpressions
System.Threading
System.Timers
System.Transactions
System.Transactions.Configurat ...
System.Web
System.Web.Caching
System.Web.Compilation
System.Web.Configuration
System.Web.Configuration.Inter ...
System.Web.Handlers
System.Web.Hosting
System.Web.Mail
System.Web.Management
System.Web.Mobile
System.Web.Profile
System.Web.RegularExpressions
System.Web.Security
System.Web.Services
System.Web.Services.Configurat ...
System.Web.Services.Descriptio ...
System.Web.Services.Discovery
System.Web.Services.Protocols
System.Web.SessionState
System.Web.UI
System.Web.UI.Adapters
System.Web.UI.Design
System.Web.UI.Design.MobileCon ...
System.Web.UI.Design.MobileCon ...
System.Web.UI.Design.WebContro ...
System.Web.UI.Design.WebContro ...
System.Web.UI.HtmlControls
System.Web.UI.MobileControls
System.Web.UI.MobileControls.A ...
System.Web.UI.MobileControls.A ...
System.Web.UI.WebControls
System.Web.UI.WebControls.Adap ...
System.Web.UI.WebControls.WebP ...
System.Web.Util
System.Windows.Forms
System.Windows.Forms.Component ...
System.Windows.Forms.Design
System.Windows.Forms.Design.Be ...
System.Windows.Forms.Layout
System.Windows.Forms.PropertyG ...
System.Windows.Forms.VisualSty ...
System.Xml
System.Xml.Schema
System.Xml.Serialization
System.Xml.Serialization.Advan ...
System.Xml.Serialization.Confi ...
System.Xml.XPath
System.Xml.Xsl
System.Xml.Xsl.Runtime
System.ServiceModel
System.ServiceModel.Activation
System.ServiceModel.Activation ...
System.ServiceModel.Channels
System.ServiceModel.ComIntegra ...
System.ServiceModel.Configurat ...
System.ServiceModel.Descriptio ...
System.ServiceModel.Diagnostic ...
System.ServiceModel.Dispatcher
System.ServiceModel.Install.Co ...
System.ServiceModel.Internal
System.ServiceModel.MsmqIntegr ...
System.ServiceModel.PeerResolv ...
System.ServiceModel.Security
System.ServiceModel.Security.T ...
System.ServiceProcess
System.ServiceProcess.Design
System.Speech.AudioFormat
System.Speech.Recognition
System.Speech.Recognition.Srgs ...
System.Speech.Synthesis
System.Speech.Synthesis.TtsEng ...
System.Text
System.Text.RegularExpressions
System.Threading
System.Timers
System.Transactions
System.Transactions.Configurat ...
System.Web
System.Web.Caching
System.Web.Compilation
System.Web.Configuration
System.Web.Configuration.Inter ...
System.Web.Handlers
System.Web.Hosting
System.Web.Mail
System.Web.Management
System.Web.Mobile
System.Web.Profile
System.Web.RegularExpressions
System.Web.Security
System.Web.Services
System.Web.Services.Configurat ...
System.Web.Services.Descriptio ...
System.Web.Services.Discovery
System.Web.Services.Protocols
System.Web.SessionState
System.Web.UI
System.Web.UI.Adapters
System.Web.UI.Design
System.Web.UI.Design.MobileCon ...
System.Web.UI.Design.MobileCon ...
System.Web.UI.Design.WebContro ...
System.Web.UI.Design.WebContro ...
System.Web.UI.HtmlControls
System.Web.UI.MobileControls
System.Web.UI.MobileControls.A ...
System.Web.UI.MobileControls.A ...
System.Web.UI.WebControls
System.Web.UI.WebControls.Adap ...
System.Web.UI.WebControls.WebP ...
System.Web.Util
System.Windows
System.Windows.Annotations
System.Windows.Annotations.Sto ...
System.Windows.Automation
System.Windows.Automation.Peer ...
System.Windows.Automation.Prov ...
System.Windows.Automation.Text
System.Windows.Controls
System.Windows.Controls.Primit ...
System.Windows.Converters
System.Windows.Data
System.Windows.Documents
System.Windows.Documents.Docum ...
System.Windows.Documents.Seria ...
System.Windows.Forms
System.Windows.Forms.Component ...
System.Windows.Forms.Design
System.Windows.Forms.Design.Be ...
System.Windows.Forms.Integrati ...
System.Windows.Forms.Layout
System.Windows.Forms.PropertyG ...
System.Windows.Forms.VisualSty ...
System.Windows.Ink
System.Windows.Ink.AnalysisCor ...
System.Windows.Input
System.Windows.Input.StylusPlu ...
System.Windows.Interop
System.Windows.Markup
System.Windows.Markup.Localize ...
System.Windows.Markup.Primitiv ...
System.Windows.Media
System.Windows.Media.Animation
System.Windows.Media.Converter ...
System.Windows.Media.Effects
System.Windows.Media.Imaging
System.Windows.Media.Media3D
System.Windows.Media.Media3D.C ...
System.Windows.Media.TextForma ...
System.Windows.Navigation
System.Windows.Resources
System.Windows.Shapes
System.Windows.Threading
System.Windows.Xps
System.Windows.Xps.Packaging
System.Windows.Xps.Serializati ...
System.Workflow.Activities
System.Workflow.Activities.Con ...
System.Workflow.Activities.Rul ...
System.Workflow.Activities.Rul ...
System.Workflow.ComponentModel
System.Workflow.ComponentModel ...
System.Workflow.ComponentModel ...
System.Workflow.ComponentModel ...
System.Workflow.Runtime
System.Workflow.Runtime.Config ...
System.Workflow.Runtime.DebugE ...
System.Workflow.Runtime.Hostin ...
System.Workflow.Runtime.Tracki ...
System.Xml
System.Xml.Schema
System.Xml.Serialization
System.Xml.Serialization.Advan ...
System.Xml.Serialization.Confi ...
System.Xml.XPath
System.Xml.Xsl
System.Xml.Xsl.Runtime
UIAutomationClientsideProvider ...
切换视图 :
经典视图
轻量型视图
无脚本视图
反馈
.NET Framework 类库
System.Security.Cryptography 命名空间
System.Security.Cryptography
命名空间提供加密服务,包括安全的数据编码和解码,以及许多其他操作,例如散列法、随机数字生成和消息身份验证。有关更多信息,请参见
加密服务
。
类
类
说明
AsnEncodedData
表示 Abstract Syntax Notation One (ASN.1) 编码数据。
AsnEncodedDataCollection
表示
AsnEncodedData
对象的集合。无法继承此类。
AsnEncodedDataEnumerator
提供在
AsnEncodedDataCollection
对象中导航的能力。无法继承此类。
AsymmetricAlgorithm
表示所有不对称算法的实现都必须从中继承的抽象基类。
AsymmetricKeyExchangeDeformatter
表示所有不对称密钥交换反格式化程序均从中派生的基类。
AsymmetricKeyExchangeFormatter
表示所有不对称密钥交换格式化程序均从中派生的基类。
AsymmetricSignatureDeformatter
表示所有不对称签名反格式化程序实现均从中派生的抽象基类。
AsymmetricSignatureFormatter
表示所有不对称签名格式化程序实现均从中派生的基类。
CryptoAPITransform
执行数据的加密转换。无法继承此类。
CryptoConfig
访问加密配置信息。
CryptographicAttributeObject
包含一个类型和与该类型相关联的值的集合。
CryptographicAttributeObjectCollection
包含
CryptographicAttributeObject
对象的集合。
CryptographicAttributeObjectEnumerator
为
CryptographicAttributeObjectCollection
集合提供枚举功能。无法继承此类。
CryptographicException
当加密操作中出现错误时引发的异常。
CryptographicUnexpectedOperationException
当加密操作中出现意外操作时引发的异常。
CryptoStream
定义将数据流链接到加密转换的流。
CspKeyContainerInfo
提供有关加密密钥对的附加信息。无法继承此类。
CspParameters
包含传递给执行加密计算的加密服务提供程序 (CSP) 的参数。无法继承此类。
DeriveBytes
表示抽象基类,导出指定长度字节序列的所有类都从该基类继承。
DES
表示所有
DES
实现都必须从中派生的数据加密标准 (DES) 算法的基类。
DESCryptoServiceProvider
定义访问数据加密标准 (
DES
) 算法的加密服务提供程序 (CSP) 版本的包装对象。无法继承此类。
DSA
表示所有数字签名算法 (
DSA
) 的实现都必须从中继承的抽象基类。
DSACryptoServiceProvider
定义访问
DSA
算法的加密服务提供程序 (CSP) 实现的包装对象。无法继承此类。
DSASignatureDeformatter
验证数字签名算法 (
DSA
) PKCS#1 1.5 版签名。
DSASignatureFormatter
创建数字签名算法 (
DSA
) 签名。
FromBase64Transform
从 Base 64 转换
CryptoStream
。
HashAlgorithm
表示所有加密哈希算法实现均必须从中派生的基类。
HMAC
表示基于哈希的消息验证代码 (HMAC) 的所有实现必须从中派生的抽象类。
HMACMD5
使用
MD5
哈希函数计算基于哈希值的消息验证代码 (HMAC)。
HMACRIPEMD160
使用
RIPEMD160
哈希函数计算基于哈希值的消息验证代码 (HMAC)。
HMACSHA1
使用
SHA1
哈希函数计算基于哈希值的消息验证代码 (HMAC)。
HMACSHA256
使用
SHA256
哈希函数计算基于哈希值的消息验证代码 (HMAC)。
HMACSHA384
使用
SHA384
哈希函数计算基于哈希值的消息验证代码 (HMAC)。
HMACSHA512
使用
SHA512
哈希函数计算基于哈希值的消息验证代码 (HMAC)。
KeyedHashAlgorithm
显示所有加密哈希算法实现均必须从中派生的抽象类。
KeySizes
确定对称加密算法的有效密钥大小设置。
MACTripleDES
使用
TripleDES
计算输入数据
CryptoStream
的消息验证代码 (MAC)。
MaskGenerationMethod
表示所有掩码生成器算法均必须从中派生的抽象类。
MD5
表示
MD5
哈希算法的所有实现均从中继承的抽象类。
MD5CryptoServiceProvider
使用加密服务提供程序 (CSP) 提供的实现,计算输入数据的
MD5
哈希值。无法继承此类。
Oid
表示加密对象标识符。无法继承此类。
OidCollection
表示
Oid
对象的集合。无法继承此类。
OidEnumerator
提供在
OidCollection
对象中导航的能力。无法继承此类。
PasswordDeriveBytes
使用 PBKDF1 算法的扩展从密码派生密钥。
PKCS1MaskGenerationMethod
根据 PKCS #1 计算用于密钥交换算法的掩码。
ProtectedData
提供保护数据和取消数据保护的方法。无法继承此类。
ProtectedMemory
提供保护内存和取消内存保护的方法。无法继承此类。
RandomNumberGenerator
表示加密随机数生成器的所有实现均从中派生的抽象类。
RC2
表示
RC2
算法的所有实现都必须从中派生的基类。
RC2CryptoServiceProvider
定义访问
RC2
算法的加密服务提供程序 (CSP) 实现的包装对象。无法继承此类。
Rfc2898DeriveBytes
通过使用基于
HMACSHA1
的伪随机数生成器,实现基于密码的密钥派生功能 (PBKDF2)。
Rijndael
表示
Rijndael
对称加密算法的所有实现必须从其继承的基类。
RijndaelManaged
访问
Rijndael
算法的托管版本。无法继承此类。
RijndaelManagedTransform
使用 Rijndael 算法执行数据的加密转换。无法继承此类。
RIPEMD160
表示 MD160 哈希算法的所有实现均从中继承的抽象类。
RIPEMD160Managed
使用托管库计算输入数据的
RIPEMD160
哈希值。
RNGCryptoServiceProvider
使用加密服务提供程序 (CSP) 提供的实现来实现加密随机数生成器 (RNG)。无法继承此类。
RSA
表示
RSA
算法的所有实现均从中继承的基类。
RSACryptoServiceProvider
使用加密服务提供程序 (CSP) 提供的
RSA
算法的实现执行不对称加密和解密。无法继承此类。
RSAOAEPKeyExchangeDeformatter
对最优不对称加密填充 (OAEP) 密钥交换数据进行解密。
RSAOAEPKeyExchangeFormatter
使用
RSA
创建最优不对称加密填充 (OAEP) 密钥交换数据。
RSAPKCS1KeyExchangeDeformatter
解密 PKCS #1 密钥交换数据。
RSAPKCS1KeyExchangeFormatter
使用
RSA
创建 PKCS#1 密钥交换数据。
RSAPKCS1SignatureDeformatter
验证
RSA
PKCS #1 1.5 版签名。
RSAPKCS1SignatureFormatter
创建
RSA
PKCS #1 1.5 版签名。
SafeHandle
SHA1
计算输入数据的
SHA1
哈希值。
SHA1CryptoServiceProvider
使用加密服务提供程序 (CSP) 提供的实现计算输入数据的
SHA1
哈希值。无法继承此类。
SHA1Managed
使用托管库计算输入数据的
SHA1
哈希值。
SHA256
计算输入数据的
SHA256
哈希值。
SHA256Managed
使用托管库计算输入数据的
SHA256
哈希值。
SHA384
计算输入数据的
SHA384
哈希值。
SHA384Managed
使用托管库计算输入数据的
SHA384
哈希值。
SHA512
计算输入数据的
SHA512
哈希值。
SHA512Managed
使用托管库计算输入数据的
SHA512
哈希算法。
SignatureDescription
包含有关数字签名的属性的信息。
SymmetricAlgorithm
表示所有对称算法的实现都必须从中继承的抽象基类。
ToBase64Transform
将
CryptoStream
转换为 Base 64。
TripleDES
表示三重数据加密标准算法的基类,
TripleDES
的所有实现都必须从此基类派生。
TripleDESCryptoServiceProvider
定义访问
TripleDES
算法的加密服务提供程序 (CSP) 版本的包装对象。无法继承此类。
接口
接口
说明
ICryptoTransform
定义基本的加密转换运算。
ICspAsymmetricAlgorithm
定义若干方法,使
AsymmetricAlgorithm
类可以枚举密钥容器信息以及导入和导出 Microsoft Cryptographic API (CAPI) 兼容的密钥 Blob。
结构
结构
说明
DSAParameters
包含
DSA
算法的典型参数。
RSAParameters
表示
RSA
算法的标准参数。
枚举
枚举
说明
CipherMode
指定用于加密的块密码模式。
CryptoStreamMode
指定加密流的模式。
CspProviderFlags
指定修改加密服务提供程序 (CSP) 行为的标志。
DataProtectionScope
指定
Protect
方法要应用的数据保护范围。
FromBase64TransformMode
指定在 Base 64 转换中是否应该忽略空白。
KeyNumber
指定是创建不对称签名密钥还是创建不对称交换密钥。
MemoryProtectionScope
指定将由
Protect
方法应用的内存保护范围。
PaddingMode
指定在消息数据块比加密操作所需的全部字节数短时应用的填充类型。
标记 :