kubernetes-entrypoint/vendor/github.com/howeyc/gopass
PiotrProkop 86b60a7c62 Fixing service bug and switching go-client to v1.5.1 2017-02-10 16:25:26 +01:00
..
.travis.yml Fixing service bug and switching go-client to v1.5.1 2017-02-10 16:25:26 +01:00
LICENSE.txt Fixing service bug and switching go-client to v1.5.1 2017-02-10 16:25:26 +01:00
OPENSOLARIS.LICENSE Fixing service bug and switching go-client to v1.5.1 2017-02-10 16:25:26 +01:00
README.md Fixing service bug and switching go-client to v1.5.1 2017-02-10 16:25:26 +01:00
pass.go Fixing service bug and switching go-client to v1.5.1 2017-02-10 16:25:26 +01:00
terminal.go Fixing service bug and switching go-client to v1.5.1 2017-02-10 16:25:26 +01:00
terminal_solaris.go Fixing service bug and switching go-client to v1.5.1 2017-02-10 16:25:26 +01:00

README.md

getpasswd in Go GoDoc Build Status

Retrieve password from user terminal or piped input without echo.

Verified on BSD, Linux, and Windows.

Example:

package main

import "fmt"
import "github.com/howeyc/gopass"

func main() {
	fmt.Printf("Password: ")

	// Silent. For printing *'s use gopass.GetPasswdMasked()
	pass, err := gopass.GetPasswd()
	if err != nil {
		// Handle gopass.ErrInterrupted or getch() read error
	}

	// Do something with pass
}

Caution: Multi-byte characters not supported!