using System.Security.Cryptography;
public static void Main()
string SBME2SN="4340FA2431595";
Console.WriteLine("SBME2 SN=" + SBME2SN);
byte[] inputBytes = BitConverter.GetBytes(Convert.ToUInt64(SBME2SN, 16));
Array.Reverse(inputBytes);
inputBytes = inputBytes.SkipWhile(x => x == 0).ToArray();
using (MD5 md5 = MD5.Create())
hashBytes = md5.ComputeHash(inputBytes);
byte[] truncatedHash = new byte[4];
Array.Copy(hashBytes, truncatedHash, 4);
uint hashValue = (uint)BitConverter.ToInt32(truncatedHash, 0);
Console.WriteLine("SBME SN=" + hashValue);