using System;
using System.Security.Cryptography;
public class Test
{
public static void Main()
{
String publicKeyBase64 = "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEwKWZUnU+9uwIWZciNGr9+NEimc/AVUzX3S2sNTlpn9GeGJYVBhD4Frzm+dn/AH/jaMbDIMnjpnCzPUxznHDjCw==";
byte[] publicKey = Convert.FromBase64String(publicKeyBase64);
SHA256 sha256 = SHA256Managed.Create();
byte[] hash = sha256.ComputeHash(publicKey);
String publicKeyHash = Convert.ToBase64String(hash);
Console.WriteLine("Result: {0}", publicKeyHash);
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uU2VjdXJpdHkuQ3J5cHRvZ3JhcGh5OwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewoJCQoJCSAgICBTdHJpbmcgcHVibGljS2V5QmFzZTY0ID0gIk1Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMERBUWNEUWdBRXdLV1pVblUrOXV3SVdaY2lOR3I5K05FaW1jL0FWVXpYM1Myc05UbHBuOUdlR0pZVkJoRDRGcnptK2RuL0FIL2phTWJESU1uanBuQ3pQVXh6bkhEakN3PT0iOwoKICAgICAgICAgICAgYnl0ZVtdIHB1YmxpY0tleSA9IENvbnZlcnQuRnJvbUJhc2U2NFN0cmluZyhwdWJsaWNLZXlCYXNlNjQpOwogICAgICAgICAgICBTSEEyNTYgc2hhMjU2ID0gU0hBMjU2TWFuYWdlZC5DcmVhdGUoKTsKICAgICAgICAgICAgYnl0ZVtdIGhhc2ggPSBzaGEyNTYuQ29tcHV0ZUhhc2gocHVibGljS2V5KTsKICAgICAgICAgICAgU3RyaW5nIHB1YmxpY0tleUhhc2ggPSBDb252ZXJ0LlRvQmFzZTY0U3RyaW5nKGhhc2gpOwoKICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoIlJlc3VsdDogezB9IiwgcHVibGljS2V5SGFzaCk7Cgl9Cn0=