命名空间: System.Security.Cryptography 程序集: System.Security.Cryptography.dll Source: HashAlgorithm.cs 表示所有加密哈希算法实现均必须从中派生的基类。C# 复制 public abstract class HashAlgorithm : IDisposable, System.Security.Cryptography.ICryptoTransform继承 Object HashAlgorithm ...
HashAlgorithm 构造函数 字段 属性 方法 清除 ComputeHash ComputeHashAsync 创建 Dispose HashCore HashFinal Initialize TransformBlock TransformFinalBlock TryComputeHash TryHashFinal HashAlgorithmName HKDF HMAC HMACMD5 HMACSHA1 HMACSHA256 HMACSHA3_256 HMACSHA3_384 ...
public enum HashAlgorithm继承 Object ValueType Enum HashAlgorithm 字段展开表 名称值说明 Mac 32773 MAC 键控哈希算法。 Md2 32769 MD2 哈希算法。 Md4 32770 MD4 哈希算法。 Md5 32771 MD5 哈希算法。 None 0 未使用哈希算法。 Sha 32772 SHA 哈希算法。 Sha256 32780 SHA-256 哈希算法。 Sha384 ...
HashAlgorithm 类 此主题的部分內容可能由机器或 AI 翻译。 消除警报 版本 .NET 9 ECDiffieHellmanCng ECDiffieHellmanCngPublicKey ECDiffieHellmanKeyDerivationFunction ECDiffieHellmanOpenSsl ECDiffieHellmanPublicKey ECDsa ECDsaCng ECDsaOpenSsl ECKeyXmlFormat...
HashAlgorithm 构造函数 字段 属性 方法 清除 ComputeHash ComputeHashAsync 创建 Dispose HashCore HashFinal Initialize TransformBlock TransformFinalBlock TryComputeHash TryHashFinal HashAlgorithmName HKDF HMAC HMACMD5 HMACSHA1 HMACSHA256 HMACSHA3_256 HMACSHA3_384 ...
HashAlgorithm.cs 計算所指定位元組陣列中指定區域的雜湊值。 C# publicbyte[]ComputeHash(byte[] buffer,intoffset,intcount); 參數 buffer Byte[] 要用來計算雜湊碼的輸入。 offset Int32 位元組陣列中的座標,從此處開始使用資料。 count Int32 陣列中要用作資料的位元組數目。
protected HashAlgorithm (); 備註 您無法建立抽象類的實例。 應用程式程式代碼會建立衍生類別的新實例。 適用於 產品版本 .NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 .NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6,...
{return(HashAlgorithm)CryptoConfig.CreateFromName(hashName); }publicbyte[] ComputeHash(Stream inputStream) {if(m_bDisposed)thrownewObjectDisposedException(null);//Default the buffer size to 4K.byte[] buffer =newbyte[4096];intbytesRead;do{ ...
HashAlgorithm 表示所有加密哈希算法实现均必须从中派生的基类 继承层次结构 System.Object System.Security.Cryptography.HashAlgorithm System.Security.Cryptography.KeyedHashAlgorithm System.Security.Cryptography.MD5 System.Security.Cryptography.RIPEMD160 ...
HashAlgorithm 构造函数 字段 属性 方法 清除 ComputeHash ComputeHashAsync 创建 Dispose HashCore HashFinal Initialize TransformBlock TransformFinalBlock TryComputeHash TryHashFinal HashAlgorithmName HKDF HMAC HMACMD5 HMACSHA1 HMACSHA256 HMACSHA3_256 HMACSHA3_384 ...