MCPcopy Create free account
hub / github.com/DNAProject/DNA / GetPassword

Function GetPassword

common/password/password.go:33–40  ·  view source on GitHub ↗

GetPassword gets password from user input

()

Source from the content-addressed store, hash-verified

31
32// GetPassword gets password from user input
33func 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
43func GetConfirmedPassword() ([]byte, error) {

Callers 3

accountExportFunction · 0.92
GetAccountPasswordFunction · 0.70
TestGetAccountPasswordFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestGetAccountPasswordFunction · 0.56