# tDataDecrypt properties for Apache Spark Structured Streaming

[Preview](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Introduction/feature-preview-program-overview.htm)

These properties are used to configure tDataDecrypt running in the Spark Structured Streaming Job framework.

The Spark Structured Streaming tDataDecrypt component belongs to the Data Quality family.

This component is supported on Local Spark 3.5.x and Databricks/EMR with Spark 3.x.

Information noteNote: This component does not support dynamic schema.

The component in this framework is available in Talend Data Management Platform, Talend Big Data Platform, Talend Real-Time Big Data Platform, Talend Data Services Platform, and in Talend Data Fabric.

## Basic settings

| Properties | Description |
| --- | --- |
| Schema and Edit Schema | A schema is a row description. It defines the number of fields<br>(columns) to be processed and passed on to the next component. When you create a Spark<br>Job, avoid the reserved word line when naming the<br>fields.<br><br>Click Sync<br>columns to retrieve the schema from the previous component connected in the<br>Job.<br><br>Click Edit<br>schema to make changes to the schema. If the current schema is of the Repository type, three options are available:<br><br><ul> <li> <p> <span>View schema</span>: choose this                option to view the schema only.</p> </li> <li> <p> <span>Change to built-in property</span>:                choose this option to change the schema to <span>Built-in</span> for local changes.</p> </li> <li> <p> <span>Update repository connection</span>:                choose this option to change the schema stored in the repository and decide whether                to propagate the changes to all the Jobs upon completion.</p> <p>If you just want to                propagate the changes to the current Job, you can select <span>No</span> upon completion and choose this schema metadata                again in the <span>Repository Content</span>                window.</p> </li> </ul> |
| Secret method | Select the secret method used to encrypt the input data:<br><br><ul> <li> <span>Cryptographic file</span> </li> <li> <span>256-bit key (encoded with                                                base64)</span> </li> </ul> |
| Password | Available when Cryptographic file is selected as secret method.<br><br>Enter the password used to<br>encrypt the cryptographic file generated by the<br>tDataEncrypt component.<br><br>This value must be enclosed in double<br>quotes. |
| Cryptographic file path | Available when Cryptographic file is selected as secret method.<br><br>Enter the path to the cryptographic<br>file used to encrypt the input data with the<br>tDataEncrypt component.<br><br>This value must be enclosed in double<br>quotes. |
| Secret key | Available when 256-bit key (encoded with<br>base64) is selected as secret method.<br><br>This value must be enclosed in double<br>quotes.<br><br>Enter the key used to encrypt the input data. |
| Cryptographic method | Available when 256-bit key (encoded with<br>base64) is selected as secret method.<br><br>Select the cryptographic method used to encrypt the input data:<br><br><ul> <li> <span>AES</span> </li> <li> <span>Blowfish</span> </li> </ul> |
| Columns to decrypt | Select the corresponding<br>Decrypt check boxes to decrypt<br>input columns.<br><br>The columns that are not selected will<br>not be decrypted. Properly configure the output schema of the<br>component to set the type of the columns to be decrypted to<br>String.<br><br>You cannot decrypt:<br><br><ul> <li>Unencrypted data.</li> <li>Data encrypted without the                                                  <span>tDataEncrypt</span> component.</li> </ul> |
| Die on error | Select this check box to stop the execution of the Job when an error occurs.<br><br>Information noteImportant: When this check box is cleared, invalid input data will not be<br>decrypted and will be kept as output data. |

## Usage

| Usage guidance | Description |
| --- | --- |
| **Usage rule** | This component is used as an intermediate step.<br><br>This component, along with the Spark Structured Streaming component Palette it belongs to,<br>appears only when you are creating a Spark Structured Streaming Job. |
| Spark Connection | You need to use the Structured Streaming Configuration<br>tab in the Run view to define the connection to a Spark cluster for<br>the whole Job.<br><br>This connection is effective on a per-Job basis. |