tock / ai.tock.shared.security / StringObfuscator

# StringObfuscator

`interface StringObfuscator` (source)

Replaces a string by an other String.

### Properties

#### regex | The search regexp. `abstract val regex: Regex`
#### replacement | The replacement string - should have the same size than the replaced string. `abstract val replacement: String`

### Functions

#### obfuscate | Obfuscate the parameter. `open fun obfuscate(text: String): String`

### Inheritors

#### SimpleObfuscator | Simple implementation for StringObfuscator. `data class SimpleObfuscator : StringObfuscator`