You are not logged in.
In my current setup I use dm-crypt with LUKS on my root drive, requiring me to enter the password on boot. Because of the length and complexity of my password, I'd like to have some sort of indication that I'm not making a tiny mistake while typing. In other words, I'd like the password prompt to show a star (or any kind of character, really) instead of emptiness for each character I type.
I'm well aware of the security reasons for not showing these stars, but shoulder surfing is of minimal concern to me. Mistyping my password, on the other hand, is. Is there any way I can enable such a visual indication somewhere? I've searched the web, but was unable to find anything specifically related to dm-crypt at boot.
Offline
If I remember correctly, Ubuntu does it in its "graphical" bootup prompt... not stars but "circles"?
I found one here: http://stackoverflow.com/questions/1923 … -with-read
Adapted it for busybox:
#!/bin/busybox sh
password=""
prompt="Enter Password:"
while IFS= read -p "$prompt" -r -s -n 1 char
do
if [ "$char" == $'\0' ]
then
break
fi
prompt='*'
password="$password$char"
done
echo -n "$password" | cryptsetup luksOpen ...
Although this example does not give you any retries...
Last edited by frostschutz (2014-02-14 09:44:18)
Offline
The stars actually show when unlocking the drive with systemd. I haven't documented this anywhere yet, but in the future, a systemd-based initramfs should be the default.
Offline