Tokenization Packages
  • Protecto Tokenization
    • Mask with AutoDetect
    • Mask with a Specific Token
    • Mask with a Specific Token and Format
    • Mask Data in JSON Format
    • Unmask a Token
    • Step-by-Step Guide to Obtain Your Auth Token
    • Supporting Token and Format Types
Powered by GitBook
On this page
  1. Protecto Tokenization

Mask Data in JSON Format

Masking data in JSON format means concealing sensitive information using tokens for privacy and security.

PreviousMask with a Specific Token and FormatNextUnmask a Token

Last updated 1 year ago

  • The ProtectoVault object is instantiated with your tokenization key.

  • The input should be any of the following JSON format .

Mask with Token

eg

Payload:{ "mask": [ { "value": "George Williams", "token_name": "Numeric Token" } ] }

Mask with Format and Token

eg

Payload:{ "mask": [ { "value": "George Williams", "token_name": "Numeric Token", "format": "Person Name" } ] }

Mask with AutoDetect

eg

Payload:{ "mask": [ { "value": "George Williams lives in Washington" } ] }

Learn more by checking out the section on

Note: To obtain the <auth token>,please refer to the

Code Snippet

# 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)

Result

{ 
  "data": [ 
    { 
      "value": "Ross", 
      "token_value": "EZN792djTe", 
      "token_name": "Text Token", 
      "format": "Person Name" 
    } 
  ], 
  "success": true, 
  "error": { 
    "message": "" 
  } 
} 

For more comprehensive information about our product, kindly reach out to us through our website at .

Supporting Token and Format Types.
Step-by-Step Guide to Obtain Your Auth Token
https://www.protecto.ai/