route/vendor/github.com/howeyc/gopass
Cadey Ratio 18a2049013 cmd/construct: start work on eclier frontend 2018-01-21 20:28:06 -08:00
..
.travis.yml cmd/construct: start work on eclier frontend 2018-01-21 20:28:06 -08:00
LICENSE.txt cmd/construct: start work on eclier frontend 2018-01-21 20:28:06 -08:00
OPENSOLARIS.LICENSE cmd/construct: start work on eclier frontend 2018-01-21 20:28:06 -08:00
README.md cmd/construct: start work on eclier frontend 2018-01-21 20:28:06 -08:00
pass.go cmd/construct: start work on eclier frontend 2018-01-21 20:28:06 -08:00
pass_test.go cmd/construct: start work on eclier frontend 2018-01-21 20:28:06 -08:00
terminal.go cmd/construct: start work on eclier frontend 2018-01-21 20:28:06 -08:00
terminal_solaris.go cmd/construct: start work on eclier frontend 2018-01-21 20:28:06 -08: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!