You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Harshavardhana eb7c690ea9 Support in-place upgrades of new minio binary and releases. (#4961) 7 years ago
..
LICENSE.txt Support in-place upgrades of new minio binary and releases. (#4961) 7 years ago
OPENSOLARIS.LICENSE Support in-place upgrades of new minio binary and releases. (#4961) 7 years ago
README.md Support in-place upgrades of new minio binary and releases. (#4961) 7 years ago
pass.go Support in-place upgrades of new minio binary and releases. (#4961) 7 years ago
terminal.go Support in-place upgrades of new minio binary and releases. (#4961) 7 years ago
terminal_solaris.go Support in-place upgrades of new minio binary and releases. (#4961) 7 years ago

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!