保护Excel文件

Aspose.Cells Cloud SDK支持工作簿解密、加密、数字签名。

Aspose.Cells Cloud REST API 支持工作簿解密、加密和数字签名,并提供多种编程语言的 SDK,包括 Android、C#、Go、Java、NodeJS、Perl、PHP、Python、Ruby、Swift。

POST
https://api.aspose.cloud/v3.0/cells/protect
Choose files

	using Aspose.Cells.Cloud.SDK.Api;
    using Aspose.Cells.Cloud.SDK.Model;
	using Aspose.Cells.Cloud.SDK.Request;
	using System;
	using System.IO;
	using System.Collections.Generic;
	CellsApi cellsApi = new CellsApi("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
	string filePath = "test.txt";
	PostProtectRequest request = new PostProtectRequest();
	request.File = new Dictionary<string, Stream>();
	Stream fileStream = File.OpenRead(filePath);
	request.File.Add(filePath, fileStream);
    request.protectWorkbookRequest = new Model.ProtectWorkbookRequest{};
    request.password = "asposelock";
	Aspose.Cells.Cloud.SDK.Model.FilesResult result = cellsApi.PostProtect(request);
	fileStream.Close();    
	    
 
 

热门经营

 
 
 
 
 
 
 

支持的开发语言