# tDataUnmasking

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

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.

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 | Data masking function in tDataMasking | Category | Data unmasking function in tDataUnmasking |
| --- | --- | --- | --- |
| Character<br>handling | Replace<br>all | Character<br>handling | Replace<br>all |
| Replace first n<br>characters | Replace first n<br>characters |  |  |
| Replace last n<br>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 first n digits and<br>replace following ones | Keep first n digits and<br>replace following ones |  |  |
| Keep last n digits and<br>replace following ones | Keep last n digits and<br>replace following 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 |  |  |

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.

### In this section

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