# Set Password

Adds password protection to the Excel file.


---

### **⬅️INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `FilePath` | `String` | ✅ Yes    | Excel file path |
| `Data`    | `Byte[]` | ✅ Yes    | Excel binary data |
| `Password` | `SecureString` | ✅ Yes    | Password to set |


---

### **➡️OUTPUT**

| **Parameter** | **Type** | **Description** |
|-----------|------|-------------|
| `IsSetPasswordSuccessful` | `Boolean` | Whether the operation succeeded |
| `SetPasswordMessage` | `String` | Result message |
| `SetPasswordResult` | `Byte[]` | Password-protected Excel file |


---

### :arrow_down:**MISC**

| **Parameter** | **Type** | **Default** | **Description** |
|-----------|------|---------|-------------|
| `ThrowException` | `Boolean` | ❌No     | Specifies whether an exception is thrown when the operation fails. The default value is "**No**". |