Encrypt an Excel workbook
Contents
[
Hide
]
This REST API encrypts an Excel workbook.
Query Parameters
| Parameter Name | Type | Description |
|---|---|---|
| folder | string | Folder path of the original workbook. |
| storageName | string | Name of the storage to use. |
Request Body Parameter
| Parameter Name | Type | Description |
|---|---|---|
| encryption | WorkbookEncryptionRequest | Encryption settings for the workbook. |
WorkbookEncryptionRequest
| Parameter Name | Type | Description |
|---|---|---|
| EncryptionType | string | Encryption algorithm (XOR, Compatible, EnhancedCryptographicProviderV1, StrongCryptographicProvider). |
| KeyLength | integer | Length of the encryption key in bits. |
| Password | string | Password used for encryption. |
REST API
| API | Type | Description | Swagger Link |
|---|---|---|---|
| /cells/{name}/encryption | POST | Encrypt Excel document | PostEncryptDocument |
The OpenAPI Specification defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.
You can use the cURL command‑line tool to access Aspose.Cells web services easily. The following example shows how to make calls to the Cloud API with cURL.
Cloud SDK Family
Using an SDK is the best way to speed up development. An SDK handles low‑level details so you can focus on your project tasks. Please check out the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.
The following code examples demonstrate how to call Aspose.Cells web services using various SDKs: