Generate ASP.Net Membership password hash in pure T-SQL

后端 未结 5 1844
天命终不由人
天命终不由人 2020-12-31 10:32

I\'m attempting to create a pure t-sql representation of the default SHA-1 password hashing in the ASP.Net Membership system. Ideally, what I would get would be this:

<
5条回答
  •  不思量自难忘°
    2020-12-31 10:48

    Instead of using CLR you can create this function in SQL. On this page you will find very nice example:

    http://svakodnevnica.com.ba/index.php?option=com_kunena&func=view&catid=4&id=4&Itemid=5&lang=en#7

    P.S. byte[] src = Convert.FromBase64String(salt); is correct way...

    Fox

提交回复
热议问题