Documentation ¶
Overview ¶
Package readpassword reads a password from the terminal of from stdin.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckTrailingGarbage ¶ added in v1.2.1
func CheckTrailingGarbage()
CheckTrailingGarbage tries to read one byte from stdin and exits with a fatal error if the read returns any data. This is meant to be called after reading the password, when there is no more data expected. This helps to catch problems with third-party tools that interface with gocryptfs.
This is tested via TestInitTrailingGarbage() in tests/cli/cli_test.go.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.