次の方法で共有


HashAlgorithm.Create メソッド (String)

HashAlgorithm の指定した実装のインスタンスを作成します。

Overloads Public Shared Function Create( _
   ByVal hashName As String _) As HashAlgorithm
[C#]
public static HashAlgorithm Create(stringhashName);
[C++]
public: static HashAlgorithm* Create(String* hashName);
[JScript]
public static function Create(
   hashName : String) : HashAlgorithm;

パラメータ

戻り値

ハッシュ アルゴリズムを実行する暗号オブジェクトのインスタンス。

解説

hashName パラメータの有効値、およびそれらの割り当て先のアルゴリズムを次の表に示します。

簡易名 アルゴリズム実装
SHA SHA1CryptoServiceProvider
SHA1 SHA1CryptoServiceProvider
System.Security.Cryptography.SHA1 SHA1CryptoServiceProvider
System.Security.Cryptography.HashAlgorithm SHA1CryptoServiceProvider
MD5 MD5CryptoServiceProvider
System.Security.Cryptography.MD5 MD5CryptoServiceProvider
SHA256 SHA256Managed
SHA-256 SHA256Managed
System.Security.Cryptography.SHA256 SHA256Managed
SHA384 SHA384Managed
SHA-384 SHA384Managed
System.Security.Cryptography.SHA384 SHA384Managed
SHA512 SHA512Managed
SHA-512 SHA512Managed
System.Security.Cryptography.SHA512 SHA512Managed

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

HashAlgorithm クラス | HashAlgorithm メンバ | System.Security.Cryptography 名前空間 | HashAlgorithm.Create オーバーロードの一覧 | 暗号サービス