You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Macbook forgot password

The recovery key I generated through my iphone was 28 characters long. My macbook air can only take 24 characters, and I cannot delete the dashes when I type it in. What do I have to do to generate a 24 character code??? I'm locked out of my macbook air and it is also locked. The locked screen that comes up also won't accept the 28 character code with or without the dashes.

MacBook Air 13″, macOS 11.4

Posted on Dec 18, 2021 6:59 AM

Reply
Question marked as Top-ranking reply

Posted on Dec 18, 2021 8:02 AM

Hi swati54,


Your Mac is asking for a FileVault recovery key. This recovery key is specific to your Mac, and only your Mac can generate it (when you first set up FileVault).


FileVault protects the data on your Mac by encrypting (scrambling) it, so that your password or the recovery key are required in order to decrypt (unscramble) it. This prevents thieves from accessing your data, but it also makes it harder to reset your password.


FileVault is not enabled by default, but it can be enabled from two places:


  • The Setup Assistant - if the option appears to enable FileVault and you choose to do so


  • In System Preferences -> Security and Privacy -> FileVault.



Unfortunately, if you don't have your password or recovery key, and you chose not to store your recovery key in iCloud when you set up FileVault, the only remaining option is to erase your Mac and start over.


To erase your Mac and reinstall macOS:


  1. Start up from macOS Recovery.
  2. If you're prompted for an admin password or the recovery key, skip to step 5.
  3. The main utilities window should appear. At the top of the screen, select Utilities -> Terminal.
  4. Type this command and hit Enter (Return): resetpassword
  5. At the top of the screen, select Recovery Assistant -> Erase Mac.
  6. Follow the onscreen instructions to erase and reactivate your Mac.
  7. The main utilities window should appear again. Select Install macOS and follow the onscreen instructions. Depending on Internet speeds, this could take quite a while - your Mac will need to download 12 GB over the Internet.


If you made a Time Machine backup prior to this incident, you can restore from that backup after you erase and reinstall macOS.

1 reply
Question marked as Top-ranking reply

Dec 18, 2021 8:02 AM in response to swati54

Hi swati54,


Your Mac is asking for a FileVault recovery key. This recovery key is specific to your Mac, and only your Mac can generate it (when you first set up FileVault).


FileVault protects the data on your Mac by encrypting (scrambling) it, so that your password or the recovery key are required in order to decrypt (unscramble) it. This prevents thieves from accessing your data, but it also makes it harder to reset your password.


FileVault is not enabled by default, but it can be enabled from two places:


  • The Setup Assistant - if the option appears to enable FileVault and you choose to do so


  • In System Preferences -> Security and Privacy -> FileVault.



Unfortunately, if you don't have your password or recovery key, and you chose not to store your recovery key in iCloud when you set up FileVault, the only remaining option is to erase your Mac and start over.


To erase your Mac and reinstall macOS:


  1. Start up from macOS Recovery.
  2. If you're prompted for an admin password or the recovery key, skip to step 5.
  3. The main utilities window should appear. At the top of the screen, select Utilities -> Terminal.
  4. Type this command and hit Enter (Return): resetpassword
  5. At the top of the screen, select Recovery Assistant -> Erase Mac.
  6. Follow the onscreen instructions to erase and reactivate your Mac.
  7. The main utilities window should appear again. Select Install macOS and follow the onscreen instructions. Depending on Internet speeds, this could take quite a while - your Mac will need to download 12 GB over the Internet.


If you made a Time Machine backup prior to this incident, you can restore from that backup after you erase and reinstall macOS.

Macbook forgot password

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.