obfuscate

fun obfuscate(data: Any?, keysToObfuscate: Set<String>): Any?

Obfuscates the given data by replacing specified keys with asterisks.

Return

The obfuscated data with specified keys replaced by asterisks.

Parameters

data

The data to be obfuscated.

keysToObfuscate

The set of keys to obfuscate in the data.