Hi,
I’m using the 4.2 Beta on EMX and attempting to use the HashAlgorithm class.
This is the code:
using System;
using Microsoft.SPOT;
using System.Security.Cryptography;
using System.Text;
namespace HashTest
{
public class Program
{
public static void Main()
{
Debug.Print(
Resources.GetString(Resources.StringResources.String1));
HashAlgorithm ha = new HashAlgorithm(HashAlgorithmType.SHA1);
byte[] toBeHashed = Encoding.UTF8.GetBytes("A String to Be Hashed");
byte[] hashCode = ha.ComputeHash(toBeHashed);
Debug.Print(hashCode.ToString());
}
}
}
This works on the Emulator, but not EMX (UN_SUPORTED Exception).
Any ideas?
Thanks,
John