Display a password input box

whiptail

{{result_variable_name}}="$(whiptail --title "{{title}}" --passwordbox "{{message}}" {{height_in_chars}} {{width_in_chars}} 3>&1 1>&2 2>&3)"

click the source code to copy install whiptail on any operating system with command-not-found.com