libgocryptfs/internal/readpassword
Jakob Unterwurzacher 8adfbf2dc3 Check for trailing garbage after the password
From the comment:

// 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.
2017-02-12 17:59:09 +01:00
..
extpass_test.go tests: exit with correct error code from TestMain 2016-06-16 21:56:23 +02:00
read.go Check for trailing garbage after the password 2017-02-12 17:59:09 +01:00
stdin_test.go readpassword: create internal package for password reading 2016-06-15 22:44:24 +02:00