I've found a few bits of code for this but they don't seem to work, can anybody quickly make me one. I used the following for MD5, anything similar would be perfect. thanks.
VB.NET:
Function MD5Hash(ByVal strToHash As String) As String
Dim md5Obj As New Security.Cryptography.MD5CryptoServiceProvider
Dim bytes() As Byte = System.Text.Encoding.ASCII.GetBytes(strToHash)
bytes = md5Obj.ComputeHash(bytes)
Dim strResult As String = ""
For Each b As Byte In bytes
strResult += b.ToString("x2")
Next
Return strResult
End Function