pr00f Posted April 15, 2011 Report Posted April 15, 2011 Importarea :Imports System.Security.CryptographyFunc?ia în sine : Function getSHA1Hash(ByVal strToHash As String) As String Dim sha1Obj As New Security.Cryptography.SHA1CryptoServiceProvider Dim bytesToHash() As Byte = System.Text.Encoding.ASCII.GetBytes(strToHash) bytesToHash = sha1Obj.ComputeHash(bytesToHash) Dim strResult As String = "" For Each b As Byte In bytesToHash strResult += b.ToString("x2") Next Return strResult End FunctionFolosirea functiei : getSHA1Hash("text here") Quote