getpasswd functionality in Go?

前端 未结 9 1657
春和景丽
春和景丽 2020-12-02 13:08

Situation:

I want to get a password entry from the stdin console - without echoing what the user types. Is there something com

9条回答
  •  既然无缘
    2020-12-02 13:41

    you can do this by execing stty -echo to turn off echo and then stty echo after reading in the password to turn it back on

提交回复
热议问题