# For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-python import os from asposecellscloud.apis.cells_api import CellsApi from asposecellscloud.models import * from asposecellscloud.requests import * api = CellsApi(os.getenv('CellsCloudClientId'),os.getenv('CellsCloudClientSecret'),"v3.0",os.getenv('CellsCloudApiBaseUrl')) encryption = WorkbookEncryptionRequest(password= '123456' ,encryption_type= 'XOR' ,key_length= 128 ) request = PostEncryptWorkbookRequest( 'Book1.xlsx', encryption,folder= 'PythonTest',storage_name= '') api.post_encrypt_workbook(request)