Dear GRUB2 Maintainers,
Thank you very much to Jiří "bindiff" Wolker for the excellent suggestion.
Based on his feedback, I have implemented support for a new boolean environment variable called echo_password,
which allows users to control whether characters are echoed (as *) when entering passwords in GRUB2.
I have tested this functionality locally. When the echo_password variable is set (e.g., to 1, true, or yes),
each typed character is displayed as an asterisk (*) on screen. If it is not set or explicitly set to 0, false,
no characters are echoed—preserving the existing secure behavior.
The submitted patch titled:
"lib-crypto-Add-echo_password-boolean-environment-var.patch"
introduces the ability to optionally enable visual feedback during password input in GRUB2.
This is version 2 of the patch adding support for the 'echo_password'
environment variable, allowing users to control whether passwords are echoed as '*' during input.
Key Changes:
-Added use of grub_env_get_bool() to read the echo_password environment variable.
-Ensured backward compatibility with existing password handling logic.
-Default behavior remains non-echoed input for security.
-Used grub_env_get_bool() consistently.
This change improves user experience by providing visual confirmation during password
input while preserving configurability and security.
Could you kindly review the proposed changes at your earliest convenience?
Any feedback or suggestions for improvement would be greatly appreciated.
Thank you very much for your time and consideration.
Best regards,
Andy Lau
[liuyan...@kylinos.cn]
----
lib-crypto-Add-echo_password-boolean-environment-var.patch
Description: Binary data
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel