Hash and encode a YAML file or dictionary.
- Parameters:
- content
str
or dict
The content to hash and encode.
- is_filebool
Whether the content is a file path.
- Returns:
- file_hash
str
The hash of the content.
- compressed_encoded
str
The compressed and encoded content.