Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrKeyboardInterrupt = errors.New("keyboard interrupt")
Functions ¶
func PromptFileName ¶
func PromptFileName() string
func Read ¶
Read prints the given prompt to standard output and then reads a line of input from standard input with echoing of input disabled. This is commonly used for inputting passwords and other sensitive data. The byte slice returned does not include the terminating "\n".
func ReadWithTimings ¶
ReadWithTimings prints the given prompt to standard output and then reads a line of input from standard input with echoing of input disabled. This is commonly used for inputting passwords and other sensitive data. The byte slice returned does not include the terminating "\n".
The time of every keypress during password input is written into the channel 'timings'. This allows to use password input to gather entropy for a random number generator. Care must be taken to not disclose these timings to an attacker: there is correlation between keys pressed and the times between key presses.
Types ¶
This section is empty.