The Date Replacement framework masks a date value based on specified beginning and end dates. Masked output values are calculated algorithmically using the algorithm's key, so rekeying the algorithm will cause a different output value to be generated for each input. It is possible for an input to be masked to itself.
Configuration options
| Options | Description |
|---|---|
| Minimum date time | The earliest date and time that can be returned as a masked value. These define the range from which the algorithm will select output values. The range is inclusive of both values. All units of time less than the specified unit must be set to 0. For example, a configuration with the unit set to Days must have the time portion set to 00:00:00. |
| Maximum date time | The latest date and time that can be returned as a masked value. |
| Unit | Defines the time granularity used when generating masked values. Supported units include Days, Hours, Minutes, and Seconds. This represents the unit of time; the range is expressed in. Any unit smaller than the specified unit will be set to 0 in the masked output. For example, with a unit of Days, all masked time values will be 00:00:00. For a more detailed explanation, see the Examples section below. |
Example
Example configuration:
-
Minimum date time: 2020-01-01 00:00:00
-
Maximum date time: 2020-01-05 00:00:00
-
Unit: Days
Possible masked results:
1995-03-05 13:25:00 → 2020-01-02 00:00:00
2021-10-13 01:59:59 → 2020-01-04 00:00:00
1856-07-31 00:00:00 → 2020-01-01 00:00:00
Example configuration:
-
Minimum date time: 2020-01-01 01:00:00
-
Maximum date time: 2020-01-01 03:00:00
-
Unit: Hours
Possible masked values:
2020-01-01 01:00:00
2020-01-01 02:00:00
2020-01-01 03:00:00
If the same range is used with the unit set to Minutes, the range produces multiple possible values between the start and end times.
Example:
2020-01-01 01:00:00
2020-01-01 01:14:00
2020-01-01 01:59:00
2020-01-01 02:23:00
2020-01-01 03:00:00
Create an algorithm using this framework
To create an algorithm using this framework, follow the steps in Create an algorithm and select Data Replacement during the Configuration step.