Can I lock an external hard drive?
I have a disk image on a drive which is passworded.
Seems to work fine but whether it will suit you...
See https://www.google.co.uk/amp/s/www.howtogeek.com/183826/how-to-create-an-encrypted-file-container-disk-image-on-a-mac/amp/