Hello, i'm trying to translate this C# code into C++ and I get constantly some exceptions, like on the type byte.
Any help is welcome! Thanks in advance!
Code:
using System;
using System.Security.Cryptography;
using System.Text;
public static string getMd5hash(string tekst)
{
byte[] bs1 = ConvertStringToByteArray(tekst);
return BitConverter.ToString(((HashAlgorithm)CryptoConfig.CreateFromName("MD5")).ComputeHash(bs1));
}
Any help is welcome! Thanks in advance!