Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
MD5 Cracker 2 - frmSingle.vb

frmSingle.vb

Caricato da:
Scarica il programma completo

  1. Imports System
  2. Imports System.IO
  3. Imports System.Text
  4. Imports System.Security
  5. Imports System.Security.Cryptography
  6. Public Class frmSingle
  7.  
  8.     Public Function MD5(ByVal Word) As String
  9.         Dim Bytes() As Byte = ASCIIEncoding.ASCII.GetBytes(Word)
  10.         Dim md5h As New MD5CryptoServiceProvider
  11.         Dim Byt() As Byte = md5h.ComputeHash(Bytes)
  12.         Dim i As Integer = (Byt.Length * 2 + (Byt.Length / 8))
  13.         Dim StrBuild As StringBuilder = New StringBuilder(i)
  14.         Dim i2 As Integer
  15.         For i2 = 0 To Byt.Length - 1
  16.             StrBuild.Append(BitConverter.ToString(Byt, i2, 1))
  17.         Next i2
  18.         Return StrBuild.ToString().TrimEnd(New Char() {" "c}).ToLower
  19.     End Function
  20.  
  21.     Private Sub frmSingle_FormClosed(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
  22.         End
  23.     End Sub
  24.  
  25.     Private Sub cmdcontrolla_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdcontrolla.Click
  26.         If Len(txthash.Text) = 0 Then
  27.             MessageBox.Show("Inserire un hash da controllare!", Me.Text, MessageBoxButtons.OK, MessageBoxIcon.Error)
  28.         Else
  29.             If MD5(txtword.Text) = txthash.Text Then
  30.                 MessageBox.Show("L'hash " & txthash.Text & " corrisponde a " & txtword.Text, Me.Text, MessageBoxButtons.OK, MessageBoxIcon.Information)
  31.             Else
  32.                 MessageBox.Show(txtword.Text & " non corrisponde all'hash " & txthash.Text, Me.Text, MessageBoxButtons.OK, MessageBoxIcon.Information)
  33.             End If
  34.         End If
  35.     End Sub
  36. End Class