MD5 hash with salt for keeping password in DB in C#

前端 未结 4 1728
一向
一向 2020-11-27 03:59

Could you please advise me some easy algorithm for hashing user password by MD5, but with salt for increasing reliability.

Now I have this one:

4条回答
  •  北荒
    北荒 (楼主)
    2020-11-27 04:31

    Microsoft have done this work for you, but it takes a bit of digging. Install Web Service Extensions 3.0, and have a look at the Microsoft.Web.Services3.Security.Tokens.UsernameToken.ComputePasswordDigest function with Reflector.

    I would like to post the source code to that function here, but I'm not sure if it's legal to do that. If anyone can reassure me then I will do so.

提交回复
热议问题