public async Task <string> Decrypt(Key key, string dataToDecrypt, IDataConverter dataConverter) { try { var byteData = dataConverter.ConvertToByteArray(dataToDecrypt); var result = await this.keyVaultClient.DecryptDataAsync(key.KeyIdentifier, "RSA_OAEP", byteData); return(dataConverter.ConvertToString(result.Result)); } catch (Exception e) { return(e.Message); } }