# tDataUnmasking

Unmasks data masked with the tDataMasking component to retrieve the original data.

For more technologies supported by Talend, see [Talend components](https://help.qlik.com/talend/r/en-US/7.3/components/data-privacy).

The tDataUnmasking component can only unmask data masked with the tDataMasking component, using the FF1 with AES or FF1 with SHA-2 method combined with a user-defined password.

In local mode, Apache Spark 1.6 and later versions are supported.

For each column to unmask from the input data, select the unmasking function that corresponds to the related data masking function in the tDataMasking component:

| Category | Function in tDataMasking | Category | Function in tDataUnmasking |
| --- | --- | --- | --- |
| Character<br>handling | Replace<br>all | Character<br>handling | Replace<br>all |
| Replace the first n characters | Replace first n<br>characters |  |  |
| Replace the last n characters | Replace last n<br>characters |  |  |
| Replace characters between<br>two positions | Replace characters between<br>two positions |  |  |
| Replace all<br>letters | Replace all<br>letters |  |  |
| Replace all<br>digits | Replace all<br>digits |  |  |
| Keep the first n digits and replace following ones | Keep first n digits and<br>replace following ones |  |  |
| Keep the last n digits and replace previous ones | Keep last n digits and replace previous ones |  |  |
| Phone<br>Masking | Mask French phone<br>number | Phone<br>Unmasking | Unmask French phone<br>number |
| Mask German phone<br>number | Unmask German phone<br>number |  |  |
| Mask Japan phone<br>number | Unmask Japan phone<br>number |  |  |
| Mask UK phone<br>number | Unmask UK phone<br>number |  |  |
| Mask US phone<br>number | Unmask US phone<br>number |  |  |
| SSN<br>Masking | Mask French<br>SSN | SSN<br>Unmasking | Unmask French<br>SSN |
| Mask German<br>SSN | Unmask German<br>SSN |  |  |
| Mask Japan<br>SSN | Unmask Japan<br>SSN |  |  |
| Mask UK<br>SSN | Unmask UK<br>SSN |  |  |
| Mask US<br>SSN | Unmask US<br>SSN |  |  |
| Mask Chinese<br>SSN | Unmask Chinese<br>SSN |  |  |
| Mask Indian<br>SSN | Unmask Indian<br>SSN |  |  |
| Bank<br>Account Masking | Mask bank code and<br>account number and keep original country\* | Bank<br>Account Unmasking | Unmask bank code and<br>account number and keep original country\* |
| Mask account number and<br>keep original country and bank code | Unmask account number<br>and keep original country and bank code |  |  |
| Credit Card<br>Masking | Mask Credit Card and<br>keep bank | Credit Card<br>Unmasking | Unmask Credit Card and<br>keep bank |
| Mask Credit<br>Card | Unmask Credit<br>Card |  |  |

You must also select the values from the Method and Alphabet lists, and enter the Extra Parameter set when the input data was masked using tDataMasking.

\***Important:** For some countries, as the function behavior has been updated from the 7.3 R2020-11 monthly version, you can only unmask bank account numbers masked from this monthly version. See the [list](https://help.qlik.com/talend/en-US/components/7.3/data-privacy/which-data-masking-function-to-use-to-mask-bank-account-numbers) of the impacted countries.

### In this section

* [tDataUnmasking Standard properties](https://help.qlik.com/talend/en-US/components/7.3/data-privacy/tdataunmasking-standard-properties)
* [tDataUnmasking properties for Apache Spark Batch](https://help.qlik.com/talend/en-US/components/7.3/data-privacy/tdataunmasking-properties-for-apache-spark-batch)
* [tDataUnmasking properties for Apache Spark Streaming](https://help.qlik.com/talend/en-US/components/7.3/data-privacy/tdataunmasking-properties-for-apache-spark-streaming)