using System.Security.Cryptography;
public static readonly SHA1 Sha1 = SHA1.Create();
public static void Main()
var nodeId = "ecf1159f0385aa7414fd8d178b28d018";
var partitionKey = BitConverter.ToInt64(Sha1.ComputeHash(Encoding.ASCII.GetBytes(nodeId)));
Console.WriteLine(partitionKey);