string to hash

TextBox1.Text.GetHashCode();

I get the hash code but I can't convert it back to string. How can I do this




Answer this question

string to hash

  • Swapna.B.

    you cannot get value from hash. Defnition by wikipedia:

    A hash function (or hash algorithm) is a way of creating a small digital "fingerprint" from any kind of data. The function chops and mixes (i.e., substitutes or transposes) the data to create the fingerprint, often called a hash value. The hash value is commonly represented as a short string of random-looking letters and numbers (Binary data written in hexadecimal notation). A good hash function is one that yields few hash collisions in expected input domains. In hash tables and data processing, collisions inhibit the distinguishing of data, making records more costly to find

    and some found by google

    You probably need encryption/decryption see Public Key RSA Encryption in C# .NET

    hope this helps



  • string to hash