internal static void Main() { var hardwareIdGenerator = new UniqueHardwareId(); Console.WriteLine($"Hardware Id MD5: {hardwareIdGenerator.CalculateHardwareId()}"); Console.WriteLine($"Hardware Id SHA256: {hardwareIdGenerator.CalculateHardwareId(SHA256.Create())}"); Console.ReadKey(); }
//Hardware ID Generator private static string HardwareIDGenerate() { var hardwareIdGenerator = new UniqueHardwareId { UseVolumeInformation = true }; return hardwareIdGenerator.CalculateHardwareId(SHA1.Create()); }