print password
A simple Lua program which can pipe stdin to stdout as triad of masked text (e.g. for a password), plain text and number of characters. e.g.
shell> echo "foobar" | ppwd ******|foobar|6
# Use ppwd with awk to obtain the masked text and plain text for use in other processes. ppwd=`echo "hello_world" | ppwd` masked=`echo "$ppwd" | awk '{split($0,mpl,"|")} END{print mpl[1]}'` # Where 1 is the index for the masked text. plain=`echo "$ppwd" | awk '{split($0,mpl,"|")} END{print mpl[2]}'` # Where 2 is the index for the plain text; use 3 for number of characters.
make
[sudo] make install
[sudo] make srcexec