Click here to Skip to main content
15,889,877 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
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?
Posted
Updated 1-Jun-14 10:08am
v2
Comments
[no name] 1-Jun-14 16:17pm    
I would probably have saved you a bit of time if you have just gone and read the documentation.
Nelek 1-Jun-14 17:00pm    
OP answered you in other comment. See below
[no name] 1-Jun-14 17:30pm    
Thanks.
z3m 1-Jun-14 16:26pm    
Dear I have already visited and studied the msdn. It didn't helped me enough.
http://msdn.microsoft.com/en-us/library/system.security.cryptography.hashalgorithm.aspx
[no name] 1-Jun-14 17:30pm    
Yes it tells you on that page as well. If you had looked at the Create method page, like you mentioned in your posting, you would have read "By default, this overload uses the SHA1CryptoServiceProvider implementation of a hash algorithm". I am not sure how much more it could have helped you.

1 solution

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[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900