commands.sh

grub2-mkpasswd-pbkdf2

linux

Generate a hashed password for GRUB.

More info →

Options (2)

-c, --iteration-countboolean

Create a password hash for GRUB 2 using PBKDF2 and print it to `stdout`

Example: sudo grub2-mkpasswd-pbkdf2 {{[-c|--iteration-count]}} {{number_of_pbkdf2_iterations}} {{[-s|--salt]}} {{salt_length}}
-s, --saltboolean

Create a password hash for GRUB 2 using PBKDF2 and print it to `stdout`

Example: sudo grub2-mkpasswd-pbkdf2 {{[-c|--iteration-count]}} {{number_of_pbkdf2_iterations}} {{[-s|--salt]}} {{salt_length}}

Examples (1)

Create a password hash for GRUB 2 using PBKDF2 and print it to `stdout`

sudo grub2-mkpasswd-pbkdf2 [-c|--iteration-count] number_of_pbkdf2_iterations [-s|--salt] salt_length
made by @shridhargupta | data from tldr-pages