Because of Quick Look’s vulnerabilities, all encryptions on macOS exist in name only.
macOS has a very practical function, namely Quick Look. You select a file or an image, press the Space key, and you will be able to preview its details. This function, however, was been reported to have a bug due to some issues on preview repository, which has led to great possibility of leaking the user’s encrypted files.