Apple's hard drive encryption protects your data from thieves and hackers. But It can keep you out, too, if you don't safely ...
The FileVault security system, introduced many years ago to macOS, prevents someone from starting up or restarting your computer and gaining access to its startup volume, which is encrypted.