coredns/vendor/github.com/howeyc/gopass
Yong Tang 6e3be7f3d5 Update vendor with go dep
This fix updates vendor with `go dep`

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-04-28 09:14:54 -07:00
..
.travis.yml Update vendor with go dep 2017-04-28 09:14:54 -07:00
LICENSE.txt Update vendor with go dep 2017-04-28 09:14:54 -07:00
OPENSOLARIS.LICENSE Update vendor with go dep 2017-04-28 09:14:54 -07:00
pass.go Update vendor with go dep 2017-04-28 09:14:54 -07:00
pass_test.go Update vendor with go dep 2017-04-28 09:14:54 -07:00
README.md Update vendor with go dep 2017-04-28 09:14:54 -07:00
terminal.go Update vendor with go dep 2017-04-28 09:14:54 -07:00
terminal_solaris.go Update vendor with go dep 2017-04-28 09:14:54 -07:00

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!