bin: safer console password input

Allow reading the console password from a variable or interactively.

Change-Id: I9b672e30d5cd834778e228794e13c7aa0dd1c6ab
Bug-Url: https://bugzilla.redhat.com/1021902
Signed-off-by: Yedidyah Bar David <didi@redhat.com>