in previous method if press ctrl-c during password enter terminal echo kept off. It was possible to fix it to set `stty echo` in sigint handler, but this solution is more elegant
in previous method if press ctrl-c during password enter terminal echo kept off. It was possible to fix it to set `stty echo` in sigint handler, but this solution is more elegant