code: def _decrypt_object(obj, translate_newlines=False):
      '''
      Recursively try to decrypt any object.
      Recur on objects that are not strings.
      Decrypt strings that are valid Fernet tokens.
      Return the rest unchanged.
      '''
      if salt.utils.stringio.is_readable(obj):
          return _decrypt_object(obj.getvalue(), translate_newlines)
      if isinstance(obj, six.string_types):
          try:
              return _decrypt_ciphertext(obj,
                                         translate_newlines=translate_newlines)
          except (fernet.InvalidToken, TypeError):
              return obj
  
      elif isinstance(obj, dict):
          for key, value in six.iteritems(obj):
              obj[key] = _decrypt_object(value,
                                         translate_newlines=translate_newlines)
          return obj
      elif isinstance(obj, list):
          for key, value in enumerate(obj):
              obj[key] = _decrypt_object(value,
                                         translate_newlines=translate_newlines)
          return obj
      else:
          return obf _decrypt_object(obj, translate_newlines=False):
      '''
      Recursively try to decrypt any object.
      Recur on objects that are not strings.
      Decrypt strings that are valid Fernet tokens.
      Return the rest unchanged.
      '''
      if salt.utils.stringio.is_readable(obj):
          return _decrypt_object(obj.getvalue(), translate_newlines)
      if isinstance(obj, six.string_types):
          try:
              return _decrypt_ciphertext(obj,
                                         translate_newlines=translate_newlines)
          except (fernet.InvalidToken, TypeError):
              return obj
  
      elif isinstance(obj, dict):
          for key, value in six.iteritems(obj):
              obj[key] = _decrypt_object(value,
                                         translate_newlines=translate_newlines)
          return obj
      elif isinstance(obj, list):
          for key, value in enumerate(obj):
              obj[key] = _decrypt_object(value,
                                         translate_newlines=translate_newlines)
          return obj
      else:
          return obj
docs: Recursively try to decrypt any object.
      Recur on objects that are not strings.
      Decrypt strings that are valid Fernet tokens.
      Return the rest unchanged.