最後の問題を最終的に修正した後、最終的なコードは
Function MD5(ByVal strToHash As String) As String
Dim md5Obj As New Security.Cryptography.MD5CryptoServiceProvider
Dim bytesToHash() As Byte = System.Text.Encoding.ASCII.GetBytes(strToHash)
bytesToHash = md5Obj.ComputeHash(bytesToHash)
Dim strResult As String = ""
For Each b As Byte In bytesToHash
strResult += b.ToString("x2")
Next
Return strResult
End Function
Dim words As IEnumerable(Of String) = File.ReadLines(OpenFileDialog1.FileName)
For Each word As String In words
If String.Equals(MD5(word), hash.Text) Then
Label2.Text = word
Else : Label2.Text = "Hash Could Not Be Cracked"
End If
Next
ハッシュされた単語が入力したハッシュと一致したら、停止する必要があります。