Home > Mac Data Recovery Tips

How to change the APFS encryption password without data loss?

Updated on Monday, November 18, 2024

Written by

Yvonne Feng

Approved by

Jessica Shee

English Français Deutsch やまと Español Português

Summary: Disk Utility change password greyed out? Cannot change the APFS encryption passphrase in Terminal? Here is how to change the APFS encryption password and recover lost data from APFS encrypted volumes with the help of iBoysoft Data Recovery for Mac.

I have a clean install of macOS High Sierra with an APFS encrypted file partition. During install, I checked the "decrypt at login" option, but each has a different password. I now want to change my APFS password but I haven't been able to:
"change password" is greyed out in the Disk Utility for my APFS volume. diskutil apfs change passphrase ... returned an error saying it can't do it.
Any idea how I can do that?

APFS encryption is designed with native encryption, offering higher security. Unlike HFS+, APFS has implemented single-key and multi-key for system-level, file-level, and specific data and metadata. 

However, some Mac users report that the APFS encrypted volume won't accept the password and they can't change the APFS encryption password. This passage will show you how to change the APFS encryption passwords and recover your data from this encrypted APFS volume.

Why you cannot change the APFS encryption password?

Normally, the password of an APFS encrypted volume can be changed at your will. But if the APFS encrypted volume is corrupted, errors will occur when you try to decrypt it or change its password. The APFS encrypted volume corruption can be caused by virus attacks, APFS encryption interruption, sudden power failure, invalid catalog files, etc.

Share this part to let more people know why they cannot change the APFS encryption password.

 

How to change the APFS encryption password?

Solution 1: Change APFS encryption password with Disk Utility

Usually, you can change the APFS password with Disk Utility if your disk is healthy.

  1. Run Disk Utility and choose "Show all devices" in the View Option.
  2. Click the encrypted APFS volume and click File.
  3. Choose "Change Password" and type the information, then click "Change" to finish.

Solution 2: Recover lost data from encrypted APFS volume and reformatting

However, if your disk file system is corrupt, reformatting is the best way. But this operation will remove all data on the APFS encrypted volume. Thus, if you have important files on the volume, please recover lost data from the APFS encrypted volume with iBoysoft Mac Data Recovery first.

Step 1: Recover lost data from APFS encrypted volume

iBoysoft Data Recovery for Mac can recover all lost data from APFS encrypted volume, recover lost data from unbootable APFS encrypted volume, and recover lost data from unmountable APFS encrypted volume, etc.

Moreover, iBoysoft Data Recovery for Mac can also support HFS+, HFSX, HFS, exFAT, FAT32 hard drives, external hard drives, USB flash drives, memory cards, SD cards, etc.

  1. Download and install iBoysoft Data Recovery for Mac on your Mac.
  2. Launch iBoysoft Data Recovery for Mac and select the hard drive that contains your APFS encrypted volume. Then click Search For Lost Data to search files. 
     
  3. Wait for the scanning to be finished.
  4. After the scanning, preview the files you want to recover, and click the Recover button to get them back. 
     

Share iBoysoft Data Recovery with your friends if you find it helpful.

 

Step 2: Change the APFS encryption password by reformatting

  1. Launch Disk Utility.
  2. Select the APFS encrypted volume from the left sidebar.
  3. Click the Erase button on the top of the Disk Utility window.
  4. Complete the name, choose the APFS(Encrypted), input a new password, and then click Erase.