C# API to decrypt cloud Microsoft Excel and OpenOffice Calc spreadsheet with password
C# library to decrypt cloud Microsoft Excel and OpenOffice Calc spreadsheet with password
Decrypt cloud Microsoft Excel and OpenOffice Calc spreadsheet with password - C# REST API
API Request:
DELETE
https://api.aspose.cloud/v3.0/cells/{name}/encryption
Decrypting a cloud spreadsheet with a password is a complex task. Decrypting a local spreadsheet with password transitions is performed by our C# SDK while maintaining the source spreadsheet's main structural and logical content. Our C# library is a professional solution to decrypt cloud spreadsheets with a password online. This Cloud SDK gives C# developers powerful functionality and perfect API.
C# code for decrypting cloud spreadsheets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-dotnet/ | |
namespace Aspose.Cells.Cloud.SDK.Example | |
{ | |
using Aspose.Cells.Cloud.SDK.Api; | |
using Aspose.Cells.Cloud.SDK.Request; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
public partial class CellsApiExample | |
{ | |
public void DeleteDecryptWorkbook1Example() | |
{ | |
CellsApi cellsApi = new CellsApi(Environment.GetEnvironmentVariable("CellsCloudTestClientId"), Environment.GetEnvironmentVariable("CellsCloudTestClientSecret")); | |
IDictionary<string, Stream> mapFiles = new Dictionary<string, Stream>(); | |
mapFiles.Add("Book1.xlsx", File.OpenRead(@"TestData\Book1.xlsx")); | |
mapFiles.Add("myDocument.xlsx", File.OpenRead(@"TestData\myDocument.xlsx")); | |
DeleteDecryptWorkbookRequest request = new DeleteDecryptWorkbookRequest | |
{ | |
name = "Book1.xlsx", | |
encryption = new Model.WorkbookEncryptionRequest | |
{ | |
Password = "123456", | |
KeyLength = 128, | |
EncryptionType = "XOR" | |
}, | |
folder = "TestData/In" | |
}; | |
cellsApi.DeleteDecryptWorkbook(request); | |
} | |
} | |
} | |
How to use C# API to decrypt
- Create an account at Dashboard to get free API quota & authorization details
- Initialize CellsApi with Client Id, Client Secret, Base URL & API version
- Call CellsWorkbookDeleteDecryptDocument method to get the resultant stream
System Requirements
- NET Framework 4.5.2 or newer
- Net Standard 2.0 or newer