Grub2 Password complexity and verification with the old password

2021-10-03 Thread bit_cof...@163.com
verify the complexity of the new password and to verify the old password of user.cfg when changing the password. I hope to present it to the community. thanks bit_cof...@163.com ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org

A new parameter is added for grub-mkpasswd-pbkdf2 tool to specify a specific salt value.

2021-10-06 Thread bit_cof...@163.com
salt = xmalloc (arguments.saltlen); @@ -160,8 +241,9 @@ main (int argc, char *argv[]) grub_util_error ("%s", _("passwords don't match")); } memset (pass2, 0, sizeof (pass2)); - - if (grub_get_random (salt, arguments.saltlen)) + if (arguments.salt != NULL) +hextobyte(arguments.salt, salt, arguments.saltlen * 2); + else if (grub_get_random (salt, arguments.saltlen)) { memset (pass1, 0, sizeof (pass1)); free (buf); -- 2.30.0 bit_cof...@163.com ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel