Documentation
¶
Overview ¶
Package readpass provides functions for reading passwords securely.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PasswordPrompt func(prompt string) (password string, err error) = DefaultPasswordPrompt
The PasswordPrompt function is the function that is called to prompt the user for a password.
View Source
var PasswordPromptBytes func(prompt string) (password []byte, err error) = DefaultPasswordPromptBytes
The PasswordPromptBytes function is the same as PasswordPrompt, but returning a byte slice instead.
Functions ¶
func DefaultPasswordPrompt ¶
DefaultPasswordPrompt is a simple (but echoing) password entry function that takes a prompt and reads the password.
func DefaultPasswordPromptBytes ¶
DefaultPasswordPrompt is a simple (but echoing) password entry function that takes a prompt and reads the password.
func SSHPasswordPrompt ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.