bc-vnt Posted August 10, 2012 Report Posted August 10, 2012 (edited) Download : MD5 Encrypt.exe download - 2sharedImports SystemImports System.NetImports System.TextImports System.SecurityImports System.Security.CryptographyPublic Class Form1Public Function MD5(ByVal Source) As String Dim Bytes() As Byte = ASCIIEncoding.ASCII.GetBytes(Source) Dim md5h As New MD5CryptoServiceProvider Dim Byt() As Byte = md5h.ComputeHash(Bytes) Dim I As Integer = (Byt.Length * 2 + Byt(Byt.Length / 8)) Dim StrBuild As StringBuilder = New StringBuilder(I) Dim i2 As Integer For i2 = 0 To Byt.Length - 1 StrBuild.Append(BitConverter.ToString(Byt, i2, 1)) Next i2 Return StrBuild.ToString().TrimEnd(New Char() {" "c}).ToLowerEnd FunctionPrivate Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load txtMD5.Text = MD5(txtConvert.Text)End SubPrivate Sub btnConvert_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnConvert.Click txtMD5.Text = MD5(txtConvert.Text)End SubPrivate Sub btnCopy_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCopy.Click Clipboard.SetDataObject(txtMD5.Text)End SubEnd ClassSursa : Guida Creare un Encriptatore MD5 [ vb.net ] Edited August 10, 2012 by Nytro Quote
bc-vnt Posted August 10, 2012 Author Report Posted August 10, 2012 Foloseste tag-ul code M-am grabit si am uitat sa dau code , dupa cand am incercat sa-i dau cu edit code , nu merge sorry ! Quote