Membership.HashAlgorithmType 属性

定义

用于哈希密码的算法的标识符。

public:
 static property System::String ^ HashAlgorithmType { System::String ^ get(); };
public static string HashAlgorithmType { get; }
member this.HashAlgorithmType : string
Public Shared ReadOnly Property HashAlgorithmType As String

属性值

String

用于哈希密码的算法的标识符,或为空以使用默认哈希算法。

注解

HashAlgorithmType 属性标识类使用的 Membership 自定义哈希算法。 使用hashAlgorithmType成员资格元素的属性设置HashAlgorithmType属性。

通过.NET Framework,可以使用元素配置部分配置自定义加密类<cryptographySettings>。 该HashAlgorithmType属性必须与元素中的<cryptoNameMapping>元素的属性<nameEntry>匹配name。 有关详细信息,请参阅 将算法名称映射到加密类

如果未设置该 HashAlgorithmType 属性,则 Membership 类使用元素属性中 validation 设置的 <machineKey> 哈希算法。

适用于

另请参阅