using System; using System.Security.Cryptography; public class Test { public static void Main() { String publicKeyBase64 = "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAENGbyXUzeZTdeyyNuXyc0nMzXmnLlxMwd/t/sCZr3RPhytPbZpR/V4/xHqN/MVzozzq30I0/eUefbThEBl236Og=="; byte[] publicKey = Convert.FromBase64String(publicKeyBase64); SHA256 sha256 = SHA256Managed.Create(); byte[] hash = sha256.ComputeHash(publicKey); String publicKeyHash = Convert.ToBase64String(hash); Console.WriteLine("Result: {0}", publicKeyHash); } }