compute hash value for a string [Archive] - C Board

PDA

View Full Version : compute hash value for a string


George2
04-10-2008, 07:21 PM
Hello everyone,


I am new to how to use C# to calculate hash value for a string. I want to check we normally use MD5CryptoServiceProvider.ComputeHash?

As described here?

http://support.microsoft.com/kb/307020/en-us


thanks in advance,
George

brewbuck
04-10-2008, 09:50 PM
What are you hashing the string for?

Magos
04-11-2008, 12:17 AM
A "System.String" (or "string" for short) has a method "GetHashValue()". Is this what you look for?

George2
04-12-2008, 12:43 AM
Thanks Magos!


Question answered.

A "System.String" (or "string" for short) has a method "GetHashValue()". Is this what you look for?


regards,
George