A class to both anonimize and rehydrate previously anonimized data; and it's derivatives

Hierarchy

  • Anonimizer

Implements

Constructors

Properties

dataMap: Map<Feature, string[]>
runOrder: Feature[] = ...

Methods

  • Parameters

    • input: string
    • featureInstances: string[]
    • featureMapValues: Map<string, string>
    • safeValues: string[]

    Returns string

  • Anonimizes sensitive data

    Parameters

    • input: string

      The input with potentially unsafe or sensitive data that to be anonimized

    • featuresToReplace: Feature[]

      Flags representing what kinds of features of the text to replace

    Returns [string, RunValueMap]

    A version of the input that has the required sensitive data replaced, as well as a map of what values got replaced / and their replacements

  • Parameters

    • input: string
    • featureInstances: string[]
    • featureMapValues: Map<string, string>

    Returns string

  • Parameters

    • value: string
    • index: number
    • array: any[]

    Returns boolean

  • Replaces previously anonimized data in a string with the original data

    Parameters

    • input: string

      The safe string to be reydrated

    • runMap: RunValueMap

      The runMap from the original anonimization run

    Returns string

    A version of the input string that has all 'safe' data replaced with the original sensitive values

Generated using TypeDoc