这篇文章有点问我需要什么但不是很好......如何加密密码
本质上我有一个模型“用户”
Public Class User
Public Property ID As Integer
Public Property NickName As String
Public Property EmailAddress As String
Public Property Password As String
End Class
我希望能够做这样的事情......
Public Class User
Public Property ID As Integer
Public Property NickName As String
Public Property EmailAddress As String
Public Property Password As String
Get
Return Password
End Get
Set(value As String)
Password = DoMyHashing(value)
End Set
End Property
End Class
有没有办法简单地做到这一点?
编辑:我已经开始使用使用联合身份系统的 BrockAllen.MembershipReboot。在我看来,它比会员提供者要好得多!