kubectl/vendor/github.com/howeyc/gopass
Hannes Hörl 849d4f9e39 Switch to repo-global vendoring, move dependencies
Actually now put the dependencies into the global `vendor` direcotry.
2017-11-29 12:34:54 +00:00
..
.travis.yml Switch to repo-global vendoring, move dependencies 2017-11-29 12:34:54 +00:00
LICENSE.txt Switch to repo-global vendoring, move dependencies 2017-11-29 12:34:54 +00:00
OPENSOLARIS.LICENSE Switch to repo-global vendoring, move dependencies 2017-11-29 12:34:54 +00:00
README.md Switch to repo-global vendoring, move dependencies 2017-11-29 12:34:54 +00:00
pass.go Switch to repo-global vendoring, move dependencies 2017-11-29 12:34:54 +00:00
pass_test.go Switch to repo-global vendoring, move dependencies 2017-11-29 12:34:54 +00:00
terminal.go Switch to repo-global vendoring, move dependencies 2017-11-29 12:34:54 +00:00
terminal_solaris.go Switch to repo-global vendoring, move dependencies 2017-11-29 12:34:54 +00: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!