Using Disk utilities you can create a new image and lock folder and by using notes app also you can lock a file on mac.