> For the complete documentation index, see [llms.txt](https://help.protecto.ai/tokenization-packages/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.protecto.ai/tokenization-packages/protecto-tokenization/mask-with-autodetect.md).

# Mask with AutoDetect

This method automatically identifies and masks personal/sensitive data within specific text.

* The ProtectoVault object is instantiated with your tokenization key.
* The input should consist of a list of values to be masked.
* The `mask` method is used to automatically identify and mask personal/sensitive data within the provided text.

***Note:*** \
To obtain the `<auth token>`,please refer to the [Step-by-Step Guide to Obtain Your Auth Token](/tokenization-packages/protecto-tokenization/step-by-step-guide-to-obtain-your-auth-token.md).

*Code Snippet*&#x20;

```python

# Import the ProtectoVault class from the protecto_ai module
from protecto_ai import ProtectoVault
# Create an instance of ProtectoVault with your authentication token
obj = ProtectoVault("<auth_token>")
# Pass a list of sensitive information as input for the mask method
result = obj.mask(["George Washington is happy", "Mark lives in the U.S.A"])
# Print the masked result
print(result)
```

*Result*

<pre class="language-python"><code class="lang-python">{ 
  "data": [ 
    { 
      "value": "George Washington is happy", 
      "token_value": "&#x3C;PER>wRePE302Qx vUc7DruuWm&#x3C;/PER> is happy", 
      "individual_tokens": [ 
        { 
          "value": "George Washington", 
          "pii_type": "PERSON", 
          "token": "wRePE302Qx vUc7DruuWm", 
          "prefix": "&#x3C;PER>", 
          "suffix": "&#x3C;/PER>" 
        } 
    ] 
    }, 
    { 
      "value": "Mark lives in the U.S.A", 
      "token_value": "&#x3C;PER>7FHnu7Uo2O&#x3C;/PER> lives in the &#x3C;ADDRESS>oQLxg3gisk.G2jPUYZHcv.bHIrJ0Mb7k&#x3C;/ADDRESS>", 
      "individual_tokens": [ 
        { 
          "value": "Mark", 
          "pii_type": "PERSON", 
          "token": "7FHnu7Uo2O", 
          "prefix": "&#x3C;PER>", 
          "suffix": "&#x3C;/PER>" 
        }, 
        { 
          "value": "U.S.A", 
          "pii_type": "GPE", 
          "token": "oQLxg3gisk.G2jPUYZHcv.bHIrJ0Mb7k", 
          "prefix": "&#x3C;ADDRESS>", 
          "suffix": "&#x3C;/ADDRESS>" 
        } 
      ] 
    } 
  ], 
  "success": true, 
  "error": { 
    "message": "" 
<strong>  } 
</strong>} 
</code></pre>

For more comprehensive information about our product, kindly reach out to us through our website at <https://www.protecto.ai/>.
