def recursive_obfuscate(obj, keys_to_obfuscate=('password',)):
    """
    Recursively obfuscate the values of keys with names specified in ``keys_to_obfuscate``.

    return: The same object passed in but hopefully obfuscated.
    """
    if isinstance(obj, dict):
        keys = obj.keys()
        for key in keys:
            if key.lower() in keys_to_obfuscate:
                obj[key] = '*' * 10
            else:
                obj[key] = recursive_obfuscate(obj[key], keys_to_obfuscate)

    return obj