SHA1CryptoServiceProvider クラス
アセンブリ: mscorlib (mscorlib.dll 内)
構文
使用例
data の SHA1 ハッシュ値を計算し、それを result に格納するコード例を次に示します。この例では、定義済みの定数 DATA_SIZE があることを前提にしています。
Dim data(DATA_SIZE) As Byte Dim result() As Byte Dim sha As New SHA1CryptoServiceProvider() ' This is one implementation of the abstract class SHA1. result = sha.ComputeHash(data)
byte[] data = new byte[DATA_SIZE]; byte[] result; SHA1 sha = new SHA1CryptoServiceProvider(); // This is one implementation of the abstract class SHA1. result = sha.ComputeHash(data);
System.Security.Cryptography.HashAlgorithm
System.Security.Cryptography.SHA1
System.Security.Cryptography.SHA1CryptoServiceProvider
プラットフォーム
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
Weblioに収録されているすべての辞書からSHA1CryptoServiceProvider クラスを検索する場合は、下記のリンクをクリックしてください。
全ての辞書からSHA1CryptoServiceProvider クラスを検索
- SHA1CryptoServiceProvider クラスのページへのリンク