Encrypt and protect a disk with a password
When you format an internal or external volume, you can encrypt and protect the volume with a password. If you encrypt an internal disk, you must enter a password to access the disk and its information. If you encrypt an external device, you must enter the password when you connect the device to your computer.
Important: If you encrypt an external drive, you can’t connect it to an AirPort base station for Time Machine backups.
To encrypt and protect the volume with a password using Disk Utility, you must erase the volume first. If the volume contains files you want to save, be sure to copy them to another volume.
Important: You can encrypt your data without erasing it by turning on FileVault in the Security & Privacy pane of System Preferences. You can also encrypt a disk and protect it with a password without erasing it by Control-clicking the disk in the Finder and choosing “Encrypt [disk name].”
If you’re protecting an external volume, make sure it’s connected to your computer.
Choose View > Show All Devices.
Select the volume you want to encrypt in the sidebar and note the volume’s file format (either APFS or Mac OS Extended). Then click the Erase button .
Enter a name for the volume.
Click the Format pop-up menu and choose either APFS (Encrypted) or Mac OS Extended (Journaled, Encrypted).
Enter a password when prompted.
If you chose Mac OS Extended (Journaled, Encrypted), to prevent the erased files from being recovered, click Security Options, use the slider to choose how many times to write over the erased data, then click OK.
Writing over the data three times meets the U.S. Department of Energy standard for securely erasing magnetic media. Writing over the data seven times meets the U.S. Department of Defense 5220-22-M standard.
Click Erase.
To change the password for your disk or partition, select it in the sidebar, then choose File > Change Password.