예제 #1
0
        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();
        }
예제 #2
0
    //Hardware ID Generator
    private static string HardwareIDGenerate()
    {
        var hardwareIdGenerator = new UniqueHardwareId
        {
            UseVolumeInformation = true
        };

        return hardwareIdGenerator.CalculateHardwareId(SHA1.Create());
    }