Hello i am looking for a md5 hash function for windows 8 (metro app)
I have been looking for this in google (and other search engines) but there is nothing for windows 8 , most of them are about win 7 (or older)
thank you any way :)
Hello i am looking for a md5 hash function for windows 8 (metro app)
I have been looking for this in google (and other search engines) but there is nothing for windows 8 , most of them are about win 7 (or older)
thank you any way :)
I didn't find MD5 but i find for SHA256 here is some sample if you are interested in ;)
Function sha512(Key As String)
Dim hash As String
Dim strAlgName As String = "SHA512"
Dim objAlgProv As HashAlgorithmProvider = HashAlgorithmProvider.OpenAlgorithm(strAlgName)
Dim objHash As CryptographicHash = objAlgProv.CreateHash()
Dim buffMsg1 As IBuffer = CryptographicBuffer.ConvertStringToBinary(Key, BinaryStringEncoding.Utf16BE)
objHash.Append(buffMsg1)
Dim buffHash1 As IBuffer = objHash.GetValueAndReset()
Dim strHash1 As String = CryptographicBuffer.EncodeToBase64String(buffHash1)
hash = strHash1
Return hash
End Function