meidianakusuma
01-27-2009, 05:55 AM
i'm using asp.net3.5, and using sql server 2000 to store my database,
i don't know how to encrypt my text (in the textbox that is password) and send the encrypted text to my database.
i ever used this but it have error every where :(:(:(:(:(:(
Public Function ComputeHashValue(ByVal data As Byte) As Byte
Dim hashAlg As SHA1 = SHA1.Create()
Dim hashvalue As Byte()
hashvalue = hashAlg.ComputeHash()
Return hashvalue
End Function
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim test As Byte
test = ComputeHashValue(Encoding.ASCII.GetHashCode(TextBox1.Text))
End Sub
i already search in the internet but it didn't work
i don't know how to encrypt my text (in the textbox that is password) and send the encrypted text to my database.
i ever used this but it have error every where :(:(:(:(:(:(
Public Function ComputeHashValue(ByVal data As Byte) As Byte
Dim hashAlg As SHA1 = SHA1.Create()
Dim hashvalue As Byte()
hashvalue = hashAlg.ComputeHash()
Return hashvalue
End Function
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim test As Byte
test = ComputeHashValue(Encoding.ASCII.GetHashCode(TextBox1.Text))
End Sub
i already search in the internet but it didn't work