How to create simple hash value? For example I have string "TechnologyIsCool" and how to have hash value from this string?
I want to do some method like:
public string HashThis(string value)
{
    string hashResult = string.Empty;
    ...
    return hashResult;
}
and call this method like:
string hash = HashThis("TechnologyIsCool");
and after that have hash like "5qazws".
Use String.GetHashCode Method
 public static void Main() 
    {
        DisplayHashCode( "Abcdei" );
    }
static void DisplayHashCode( String Operand )
{
    int     HashCode = Operand.GetHashCode( );
    Console.WriteLine("The hash code for \"{0}\" is: 0x{1:X8}, {1}",
                      Operand, HashCode );
}
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With