Android API to protect local Microsoft Excel and OpenOffice Calc spreadsheet with password
Android library to protect local Microsoft Excel and OpenOffice Calc spreadsheet with password
Protect local Microsoft Excel and OpenOffice Calc spreadsheet with password - Android REST API
API Request:
POST
https://api.aspose.cloud/v3.0/cells/protect
Protecting a local spreadsheet with a password is a complex task. Protecting a local 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 local spreadsheets with a password online. This Cloud SDK gives Android developers powerful functionality and perfect API.
Code example in Android using REST API to encryption local 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{ | |
LightCellsApi api = new LightCellsApi(System.getenv("CellsCloudTestClientId"),System.getenv("CellsCloudTestClientSecret"),"v3.0",System.getenv("CellsCloudTestApiBaseUrl")); | |
String AssemblyTestXlsx = "assemblytest.xlsx"; | |
String DataSourceXlsx = "datasource.xlsx"; | |
HashMap<String,File> fileMap = new HashMap<String,File>(); | |
fileMap.put(AssemblyTestXlsx , new File("C:\\TestData\\" + AssemblyTestXlsx)); | |
fileMap.put(DataSourceXlsx , new File("C:\\TestData\\" + DataSourceXlsx) ); | |
FilesResult response = api.postProtect(fileMap,"123456"); | |
} catch (ApiException e) { | |
// TODO Auto-generated catch block | |
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 postProtect method to get the resultant stream
System Requirements
- Android 7 or newer
- Java(TM) SE Runtime Environment