Has anyone succeeded getting files from this article? Following are stated: https://docs.microsoft.com/en-us/sharepoint/dev/apis/export-amr-api
using (Stream stmTemp = new MemoryStream())
{
// Download current manifest file
blob.DownloadToStream(stmTemp);
// Get IV and decrypt the content into output dir
byte[] IV = Convert.FromBase64String(blob.Metadata[“IV”]);
using (Stream targetStream = System.IO.File.Open(outputFileFullPath, FileMode.Append))
{
using (Aes alg = new AesCryptoServiceProvider())
{
stmTemp.Seek(0, SeekOrigin.Begin);
using (CryptoStream csDecrypt = new CryptoStream(
stmTemp,
alg.CreateDecryptor(key, IV),
CryptoStreamMode.Read))
{
csDecrypt.CopyTo(targetStream);
}
}
}
}
However this key is not pressent on the blob: byte[] IV = Convert.FromBase64String(blob.Metadata[“IV”]);
And what is key? It is like a half sample of something not working :(