# Import the ProtectoVault class from the protecto_ai modulefrom protecto_ai import ProtectoVault# Create an instance of ProtectoVault with your authentication tokenobj =ProtectoVault("<auth_token>")# Pass a list of sensitive information as input for the mask methodresult = obj.mask(["George Washington is happy", "Mark lives in the U.S.A"])# Print the masked resultprint(result)
Result
{"data": [ {"value":"George Washington is happy","token_value":"<PER>wRePE302Qx vUc7DruuWm</PER> is happy","individual_tokens": [ {"value":"George Washington","pii_type":"PERSON","token":"wRePE302Qx vUc7DruuWm","prefix":"<PER>","suffix":"</PER>"} ] },{"value":"Mark lives in the U.S.A","token_value":"<PER>7FHnu7Uo2O</PER> lives in the <ADDRESS>oQLxg3gisk.G2jPUYZHcv.bHIrJ0Mb7k</ADDRESS>","individual_tokens": [ {"value":"Mark","pii_type":"PERSON","token":"7FHnu7Uo2O","prefix":"<PER>","suffix":"</PER>"},{"value":"U.S.A","pii_type":"GPE","token":"oQLxg3gisk.G2jPUYZHcv.bHIrJ0Mb7k","prefix":"<ADDRESS>","suffix":"</ADDRESS>"} ] } ],"success": true,"error":{"message":""}}
For more comprehensive information about our product, kindly reach out to us through our website at https://www.protecto.ai/.