I need to send a request from PHP to a C# WEB API. As part of the authentication it requires an MD5 hash of an empty byte array.
How can I generate an MD5 hash of an empty byte array on PHP? I would do it like this in C#.
byte[] Content = new byte[0];
using (var md5 = MD5.Create())
{
return md5.ComputeHash(content);
}