Forum Discussion
How to encrypt a file on mac for password protection?
How to encrypt a file on Mac—using built-in tools can be the most straightforward way for most users. On macOS, the easiest method to encrypt a file with password protection is to create an encrypted archive using the built-in Disk Utility or Terminal. Here's a simple way to do it:
How to encrypt a file on Mac?
1. Open Disk Utility:
Go to Applications > Utilities > Disk Utility.
2. Create a New Disk Image:
Click File > New Image > Image from Folder....
Select the folder containing the file(s) you want to encrypt, or choose a specific file.
3. Configure Encryption Settings:
When prompted, choose a location to save the disk image.
Under Encryption, select 128-bit AES encryption (or 256-bit if you prefer more security; macOS will prompt for a password).
Enter a strong password when asked (don't save it in your keychain unless you want to).
4. Save and Finish:
Once created, the disk image (.dmg) will be encrypted and password-protected.
To access your files, double-click the disk image and enter the password.