Hey,
I want to make a hashcode for a String.
What is have to do is convert the String to Byte.
I do the following:
------------------------------------------------
Dim ae As New ASCIIEncoding
Dim bericht As String = "test"
hash = sha1.ComputeHash(ae.GetBytes(bericht))
-------------------------------------------------
I get the following error:
Value of type '1-dimensional array of Byte' cannot be converted to 'Byte'.
Can anyone help me?
I want to make a hashcode for a String.
What is have to do is convert the String to Byte.
I do the following:
------------------------------------------------
Dim ae As New ASCIIEncoding
Dim bericht As String = "test"
hash = sha1.ComputeHash(ae.GetBytes(bericht))
-------------------------------------------------
I get the following error:
Value of type '1-dimensional array of Byte' cannot be converted to 'Byte'.
Can anyone help me?