For both battery-life and environmental reasons, I prefer my MacBook (Sierra) to enter sleep mode fairly quickly if I'm not using it. For security reasons, I would like for it always to require a password when it's opened. But it seems like the only way to make it lock when closed is to make require a password every time it goes into sleep mode.
Meanwhile (also for security purposes), I have a pretty long/random password -- one I don't want to have to enter every time I leave my computer for five minutes. Surely I don't have to choose between security and battery life?
It seems like both would be pretty standard concerns for Mac users. All I want is for my machine not to require a password when it wakes up, and to require one whenever it's reopened.
Is there a way to achieve what I want?