I have already convert the "Password" input with this code
Dim password As String = (MyPass + MyUName)
Dim mhash As HashAlgorithm = New SHA1CryptoServiceProvider
Dim bytValue() As Byte = System.Text.Encoding.UTF8.GetBytes(password)
Dim bytHash() As Byte = mhash.ComputeHash(bytValue)
mhash.Clear()
ENPass = Convert.ToBase64String(bytHash)
And with this code I'm taking back a byte array same like the bytHash
Dim Text As String = Convert.ToString(OfficeCommsRecs(5))
Dim oReturn As New StringBuilder
Dim Separator As String = ("")
For Each Character As Byte In ASCIIEncoding.ASCII.GetBytes(Text)
oReturn.Append(Convert.ToString(Character, 2).PadLeft(8, "1"))
oReturn.Append(Separator)
Next
Dim myPass As Object = oReturn
What I have to do to take back the password?
stringrepresentation of the binary data when you really should be usingbyte[]insteadUPDATEto insert the values in the new binary field, after which I delete the no-more-needed varchar field. I do this when I cannot