-1
终于修复我的最后一个问题后,我与结束的代码是VB.NET对于每个
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
现在我需要使其停止一次哈希的话,我键入的散列相匹配!
它没有工作=/ – user1328301 2012-04-26 18:48:54
@ user1328301:我刚编辑我的答案,看看。 – 2012-04-26 18:50:25
它需要在for循环中,因为它们打开的文件有多行。 – user1328301 2012-04-26 18:53:47