In File Explorer, right-click on your folder and open its Properties. Then go to the General tab ->Advanced ->Encrypt contents (…). If you’d like a more detailed view on how to encrypt files and folders in Windows 10, here’s all you need to know.