bin/input-main-passwd: get the password and paste it

Signed-off-by: Bao Haojun <baohaojun@gmail.com>