SHA1.Create 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
允许实例化此抽象类的特定实现。
重载
Create() |
创建 SHA1 的默认实现的实例。 |
Create(String) |
创建 SHA1 的指定实现的实例。 |
Create()
创建 SHA1 的默认实现的实例。
public:
static System::Security::Cryptography::SHA1 ^ Create();
public static System.Security.Cryptography.SHA1 Create ();
static member Create : unit -> System.Security.Cryptography.SHA1
Public Shared Function Create () As SHA1
返回
SHA1 的新实例。
注解
默认实现为 SHA1 SHA1CryptoServiceProvider.
另请参阅
适用于
Create(String)
创建 SHA1 的指定实现的实例。
public:
static System::Security::Cryptography::SHA1 ^ Create(System::String ^ hashName);
public static System.Security.Cryptography.SHA1? Create (string hashName);
public static System.Security.Cryptography.SHA1 Create (string hashName);
static member Create : string -> System.Security.Cryptography.SHA1
Public Shared Function Create (hashName As String) As SHA1
参数
返回
使用指定实现的 SHA1 的新实例。
注解
由于 SHA1 出现冲突问题,Microsoft 建议使用基于 SHA256 或更好的安全模型。