Hash string in c#

前端 未结 7 1520
栀梦
栀梦 2020-12-07 10:30

I have a problem when trying get a hash string in c#.

I already tried a few websites, but most of them are using files to get the hash. Others that are

7条回答
  •  伪装坚强ぢ
    2020-12-07 10:48

    I don't really understand the full scope of your question, but if all you need is a hash of the string, then it's very easy to get that.

    Just use the GetHashCode method.

    Like this:

    string hash = username.GetHashCode();
    

提交回复
热议问题