We put password protection on a folder in macOS!
In order to put a password on the folder of interest in macOS, it is not necessary to have third-party programs. This can be done using a system function that allows you to create an image of a folder that is an encrypted copy of it. All files stored inside this image will be password protected.