tock / ai.tock.shared.security / TockObfuscatorService

# TockObfuscatorService

`object TockObfuscatorService` (source)

To manage obfuscations.

### Functions

#### deregisterObfuscators | Removes all current stringObfuscators. `fun deregisterObfuscators(): Unit`
#### obfuscate | Obfuscates list of texts. `fun obfuscate(texts: List<String>, obfuscatedRanges: Map<Int, List<IntRange>> = emptyMap()): List<String>` Obfuscates text. `fun obfuscate(text: String?, obfuscatedRanges: List<IntRange> = emptyList()): String?` Obfuscates a map - usually key-based. `fun obfuscate(map: Map<String, String>): Map<String, String>`
#### registerMapObfuscator | Registers parameters stringObfuscators. `fun registerMapObfuscator(vararg newObfuscators: MapObfuscator): Unit`
#### registerStringObfuscator | Registers string stringObfuscators. `fun registerStringObfuscator(vararg newObfuscators: StringObfuscator): Unit`