GetPassword gets password from user input
()
| 31 | |
| 32 | // GetPassword gets password from user input |
| 33 | func GetPassword() ([]byte, error) { |
| 34 | fmt.Printf("Password:") |
| 35 | passwd, err := gopass.GetPasswd() |
| 36 | if err != nil { |
| 37 | return nil, err |
| 38 | } |
| 39 | return passwd, nil |
| 40 | } |
| 41 | |
| 42 | // GetConfirmedPassword gets double confirmed password from user input |
| 43 | func GetConfirmedPassword() ([]byte, error) { |
no outgoing calls