Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > c26dce65113de186a7834d3ec121c1eb > files > 3

golang-github-howeyc-gopass-devel-0-0.1.git2c70fa7.mga7.noarch.rpm

# getpasswd in Go

Retrieve password from user terminal input without echo

Verified on BSD, Linux, and Windows.

Example:
```go
package main

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

func main() {
	fmt.Printf("Password: ")
	pass := gopass.GetPasswd() // Silent, for *'s use gopass.GetPasswdMasked()
    // Do something with pass
}
```

Caution: Multi-byte characters not supported!