package password
import "github.com/hashicorp/go-secure-stdlib/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 ¶
Variables ¶
Functions ¶
func Read ¶
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.
Source Files ¶
- Version
- v0.1.4 (latest)
- Published
- Mar 19, 2025
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 1 month ago –
Tools for package owners.