tock / ai.tock.shared.security / TockObfuscatorService / obfuscate

obfuscate

fun obfuscate(texts: List<String>, obfuscatedRanges: Map<Int, List<IntRange>> = emptyMap()): List<String> (source)

Obfuscates list of texts.

Parameters

texts - the text list to obfuscate

obfuscatedRanges - a map (texts list indexed) of forced obfuscated ranges

fun obfuscate(text: String?, obfuscatedRanges: List<IntRange> = emptyList()): String? (source)

Obfuscates text.

Parameters

text - the text to obfuscate

obfuscatedRanges - the forced obfuscation ranges

fun obfuscate(map: Map<String, String>): Map<String, String> (source)

Obfuscates a map - usually key-based.

Map
the map to be obfuscated