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

Striker

Moderator
Staff member
Donator
Premium Member
Joined
Oct 20, 2018
Messages
22
Motherboard
Gigabyte Z590 Vision G
CPU
Intel Core i9 11900F
Graphics
Sapphire Nitro plus Radeon RX590 Special Edition
OS X/macOS
11.0.x
Bootloader
  1. OpenCore
Mobile Phone
  1. Android
  2. iOS

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
 

Trending Threads

Forum statistics

Threads
714
Messages
7,407
Members
6,228
Latest member
andyjusa