---
Product: Aspose.Cells
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/python/xlsxencryptor
---

# XLSXEncryptor

## Overview

`XLSXEncryptor` is a class in Aspose.Cells FOSS for Python.

Handles encryption of XLSX files.

This class declares 2 methods for XLSXEncryptor objects in Python programs.
Available methods include: `__init__`, `encrypt_file`.
Public members are accessible to any Python application after installing the Aspose.Cells FOSS for Python package.
Properties: `params`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `params` | - | Read | Gets the params. |

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__(encryption_params)` | Initialize XLSX encryptor. |
| `encrypt_file(input_xlsx_path, output_path, password)` | Encrypt an XLSX file. |

## See Also

- [Aspose.Cells for Python — Enterprise API Reference](https://reference.aspose.com/cells/python-java/)