REDACTfor that filter type. When multiple filter strategies are given for a single filter type, the filter strategies will be applied in order as they are listed in the filter profile.
CRYPTO_REPLACEfilter strategy replaces each identified piece of sensitive information by encrypting it using the AES encryption algorithm. To use this filter strategy, the filter profile must include the details of the encryption key as shown below:
keyand an initialization vector (
iv). These two items are required to encrypt the sensitive information. To generate a key, run the following command:
ivwill be shown. Copy and paste those values into the filter profile as shown above.
HASH_SHA256_REPLACEfilter strategy replaces sensitive information with the SHA256 hash value of the sensitive information. To append a random salt value to each value prior to hashing, set the
true. The salt value used will be returned in the
explainresponse from Philter's API.
###-##-####, such as 123-45-6789. An email address will be replaced with a randomly generated email address. Available to all filter types.
truncateDigitsto set the desired number of leading digits to leave. For example, if
truncateDigitsis 2, the zip code 90210 will be truncated to
90***. Available only to a zip code filter.
11/05/2010are replaced by using the condition
token == "11/05/2010". The conditions that can be applied vary based on the type of sensitive information. For instance, zip codes can have conditions based on their population. Refer to each specific filter type for the conditions available.
andkeyword. When conditions are joined, each condition must be satisfied for the identified text to be filtered. If any of the conditions are not satisfied the identified text will not be filtered. Below is an example joined condition:
123-45-6789and the context be equal to
my-context. Both of these conditions must be satisfied for the identified text to be filtered.
OR'd through the use of multiple filter strategies. For example, if we want to OR a condition on the token and a condition on the context, we would use two filter strategies: