• Become a Premium Member for $25/year with no ads to improve your community experience.

GUIDE How to Enable Password in OpenCore

How to Enable Password in OpenCore Boot Picker​

This guide describes how to Enable Password in OpenCore Boot Picker. Starting from OpenCore 0.6.1, you can set an SHA-512 password to ensure security with the configuration. This will enable a password prompt whenever the following tasks are executed:
  • Boot Menu
  • Booting non-default OSes and tools(ie. not blessed by Startup Disk or Bootcamp Utility)
  • Booting non-default modes(ie. Verbose or Safe Mode via hotkeys)
  • Resetting NVRAM
With OpenCore 0.6.7, a new tool ocpasswordgen was added for generating the passwords.

To enable password in OpenCore Boot Picker, follow the steps below.

1. Download OpenCore Pkg.
2. Copy ocpasswordgen from OpenCore 0.X.X RELEASE/Utilities/ocpasswordgen to your Desktop
3. Open ocpasswordgen
4. When prompted, enter your desired password and press enter key and it will generate the following
  • PasswordHash: Hash of the password
  • PasswordSalt: Ensures no other users with the same password do not have the same hash
5. Do not close the Terminal yet.
6. Mount your ESP.
7. Open the config.plist using any XML editor.
8. Add PasswordHash and PasswordSalt in Misc>Security section of your config.plist
9. Also, enable the EnablePassword option in the same section
10. Save your config.plist
11. Restart your System. If you don't see the password prompt, reset NVRAM.
 
Last edited:
  • Like
Reactions: Edilsonlima

How to Enable Password in OpenCore​

This guide describes how to Enable Password in OpenCore. To enable password in OpenCore Boot Picker, follow the steps below.

1. Download OpenCore Pkg.
2. Copy ocpasswordgen from OpenCore X.X.X RELEASE/Utilities/ocpasswordgen to your Desktop
3. Open ocpasswordgen
4. When prompted, enter your desired password and press enter key and it will generate PasswordHash and PasswordSalt.
5. Do not close the Terminal yet.
6. Mount your ESP.
7. Open the config.plist using any XML editor.
8. Add PasswordHash and PasswordSalt in Misc>Security section of your config.plist
9. Also, enable the EnablePassword option in the same section
10. Save your config.plist
11. Restart your System. If you don't see the password prompt, reset NVRAM.
Nice tutorial
 

Forum statistics

Threads
1,479
Messages
13,997
Members
21,159
Latest member
Yannisy