Android API to protect cloud Microsoft Excel and OpenOffice Calc spreadsheet with password
Android library to protect cloud Microsoft Excel and OpenOffice Calc spreadsheet with password
Protect cloud Microsoft Excel and OpenOffice Calc spreadsheet with password - Android REST API
API Request:
POST
https://api.aspose.cloud/v3.0/cells/{name}/encryption
Protecting a cloud spreadsheet with a password is a complex task. Protecting a cloud spreadsheet with password transitions is performed by our Android SDK while maintaining the source spreadsheet's main structural and logical content. Our Android library is a professional solution to protect cloud spreadsheets with a password online. This Cloud SDK gives Android developers powerful functionality and perfect API.
Android code for encryption 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-android/ | |
try { | |
CellsApi api = new CellsApi(CellsApiUtil.GetClientId(),CellsApiUtil.GetClientSecret(),CellsApiUtil.GetAPIVersion(),CellsApiUtil.GetBaseUrl()); | |
String name = BOOK1; | |
WorkbookEncryptionRequest encryption = new WorkbookEncryptionRequest(); | |
encryption.setEncryptionType("XOR"); | |
encryption.setKeyLength(128); | |
encryption.setPassword("123456"); | |
String folder = TEMPFOLDER; | |
CellsApiUtil.Upload(api, folder, name); | |
CellsCloudResponse response = api.cellsWorkbookPostEncryptDocument( | |
name, encryption, folder, null); | |
} catch (Exception e) { | |
e.printStackTrace(); | |
} |
How to use Java API to encrypt
- Create an account at Dashboard to get free API quota & authorization details
- Initialize CellsApi with Client Id, Client Secret, Base URL & API version
- Call cellsWorkbookPostEncryptDocument method to get the resultant stream
System Requirements
- Android 7 or newer
- Java(TM) SE Runtime Environment