Unmask a Token
In tokenization, unmasking is the procedure of reversing the masking process to recover the original sensitive data from its masked representation.
# 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>")
# Use the unmask method to retrieve the actual data.
result = obj.unmask(["<PER>wRePE302Qx vUc7DruuWm</PER> is happy"])
# Print the unmasked result
print(result){
"data": [
{
"token_value": "<PER>wRePE302Qx vUc7DruuWm</PER> is happy",
"value": "George Washington is happy"
}
],
"success": true,
"error": {
"message": ""
}
} Last updated