ACHEI \o/ - Instalando do Nuguet o PCLCrypto(ao instalar, o assembly Validation tem que estar aparecendo tbm na lista de referencias, senão instala manualmente entrando na pasta do PCLCrypto). só mandar esse código aí e sucesso!
public string CreateHash(string date, string userId) {
IMacAlgorithmProvider mac = WinRTCrypto.MacAlgorithmProvider.OpenAlgorithm(MacAlgorithm.HmacSha512);
byte[] keyMaterial = WinRTCrypto.CryptographicBuffer.ConvertStringToBinary(date, crypto.Encode());
ICryptographicKey cryptoKey = mac.CreateKey(keyMaterial);
byte[] hash = WinRTCrypto.CryptographicEngine.Sign(cryptoKey, WinRTCrypto.CryptographicBuffer.ConvertStringToBinary(userId, Encoding.UTF8));
StringBuilder hashHMAC = new StringBuilder();
for (int i = 0; i < hash.Length; i++) {
hashHMAC.Append(hash[i].ToString("X2"));
}
return hashHMAC.ToString();
}