How do I generate an encryption hash in ASP.NET MVC?

后端 未结 4 1060
一个人的身影
一个人的身影 2021-01-05 16:12

I am looking into creating a custom members login system (for learning) and I haven\'t been able to figure out the C# command to generate an encrypted hash.

Is ther

4条回答
  •  再見小時候
    2021-01-05 16:27

    Well, first of all an encryption hash is a contradiction. Like a vegetarian steak. You can use encryption, or you can hash them (and you should hash them), but hashing is not encryption.

    Look up a class starting with Md5 ;) Or Sha1 - those are hash algoryithms. It is all there in .NET (System.Security.Cryptography namespace).

提交回复
热议问题