Membership.HashAlgorithmType 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
用于哈希密码的算法的标识符。
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
属性值
用于哈希密码的算法的标识符,或为空以使用默认哈希算法。
注解
该 HashAlgorithmType 属性标识类使用的 Membership 自定义哈希算法。 使用hashAlgorithmType
成员资格元素的属性设置HashAlgorithmType属性。
通过.NET Framework,可以使用元素配置部分配置自定义加密类<cryptographySettings>
。 该HashAlgorithmType属性必须与元素中的<cryptoNameMapping>
元素的属性<nameEntry>
匹配name
。 有关详细信息,请参阅 将算法名称映射到加密类。
如果未设置该 HashAlgorithmType 属性,则 Membership 类使用元素属性中 validation
设置的 <machineKey>
哈希算法。