Mask Data in JSON Format
Masking data in JSON format means concealing sensitive information using tokens for privacy and security.
Payload:{ "mask": [ { "value": "George Williams", "token_name": "Numeric Token" } ] }Payload:{ "mask": [ { "value": "George Williams", "token_name": "Numeric Token", "format": "Person Name" } ] }Payload:{ "mask": [ { "value": "George Williams lives in Washington" } ] }# 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 list of sensitive information as an input for the mask method
result = obj.mask({"mask": [{"value": "Ross", "token_name": "Text Token", "format": "Person Name"}]})
# Print the masked result
print(result)Last updated