任何机构都可以告诉我HashAlgorithm类使用的默认哈希算法的名称 [英] Can any body tell me about the name of default Hash Algorithm used by HashAlgorithm class
本文介绍了任何机构都可以告诉我HashAlgorithm类使用的默认哈希算法的名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
HashAlgorithm类有一个函数.create(),它创建一个哈希算法默认实现的实例。
所以我想知道的是:默认使用哪种哈希算法?
HashAlgorithm class has a function .create() which creates an instance of the default implementation of a hash algorithm.
So all I want to know is: which hash algorithm is used as default?
推荐答案
如果你按照原始链接 [ ^ ],转到方法部分,单击创建(),您将获得有关创建方法的信息:此处 [< a href =http://msdn.microsoft.com/en-us/library/b0ky3sbb.aspxtarget =_ blanktitle =New Window> ^ ]。
该页面指出默认情况下,此重载使用SHA1CryptoServiceProvider,因此默认提供程序为 SHA-1 [< a href =http://en.wikipedia.org/wiki/SHA-target =_ blanktitle =New Window> ^ ]。
If you follow your original link[^], go to the "Methods" section and click "Create()" you are taken to the information about the Create method: here[^].
The page states "By default, this overload uses the SHA1CryptoServiceProvider ", so the default provider is SHA-1[^].
这篇关于任何机构都可以告诉我HashAlgorithm类使用的默认哈希算法的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文