microsoft-graph-docs
microsoft-graph-docs copied to clipboard
Invalid C# code for "Decrypt the resource data content"
In the example:
// Obtain the intialization vector from the symmetric key itself.
int vectorSize = 16;
byte[] iv = new byte[vectorSize];
Array.Copy(decryptedSymmetricKey, iv, vectorSize);
aesProvider.IV = iv;
byte[] encryptedPayload = Convert.FromBase64String(<value from _dataKey_ property>);
string decryptedResourceData;
It's the "data" property, not the "dataKey" property. Without this distinction the Decryptor will fail.
Cheers,
Sam
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 9e7bb652-e041-1ba5-9679-908a98e51a79
- Version Independent ID: 540d51d6-50d6-828c-2aa1-0bb02f30ee22
- Content: Set up change notifications that include resource data - Microsoft Graph
- Content Source: concepts/webhooks-with-resource-data.md
- Product: non-product-specific
- Technology: microsoft-graph
- GitHub Login: @jumasure
- Microsoft Alias: MSGraphDocsVteam