This is an updated version of a script to assist with entering (for example) the 4th, 7th, and 11th characters of your password.

Example usage:
./passchrs 4 7 11

The script will then prompt for your full password and display only the appropriate characters. This updated version does not show the password as it is typed.

Cheers.
#!/bin/bash

echo -n password:
read -s PW

for P in $@
do
    C=$((P-1))
    echo -n ${PW:C:1}
done

echo

_______________________________________________
NetBehaviour mailing list
NetBehaviour@netbehaviour.org
http://www.netbehaviour.org/mailman/listinfo/netbehaviour

Reply via email to