Use System.console().readPassword instead of readLine for passwords when signing application.