# grub2-mkpasswd-pbkdf2 > 生成 GRUB 的哈希密码。 > 更多信息:。 - 使用 PBKDF2 为 GRUB 2 创建密码哈希并将其打印到 `stdout`: `sudo grub2-mkpasswd-pbkdf2 {{-c|--iteration-count}} {{number_of_pbkdf2_iterations}} {{-s|--salt}} {{salt_length}}`