vault: github.com/hashicorp/vault/sdk/helper/password Index | Files

package password

import "github.com/hashicorp/vault/sdk/helper/password"

password is a package for reading a password securely from a terminal. The code in this package disables echo in the terminal so that the password is not echoed back in plaintext to the user.

Index

Package Files

password.go password_unix.go

Variables

var ErrInterrupted = errors.New("interrupted")

func Read Uses

func Read(f *os.File) (string, error)

Read reads the password from the given os.File. The password will not be echoed back to the user. Ctrl-C will automatically return from this function with a blank string and an ErrInterrupted.

Package password imports 7 packages (graph) and is imported by 8 packages. Updated 2019-04-12. Refresh now. Tools for package owners.