bgentry / speakeasy

cross-platform Golang helpers for reading password input without cgo
Other
116 stars 24 forks source link

speakeasy.Ask() strips leading/training spaces from passwords #13

Open azdagron opened 8 years ago

azdagron commented 8 years ago

Obviously a problem for passwords with leading/trailing spaces....

Why are we trimming here? Seems like it should be a concern of the caller (i.e., sanitizing the input against password policies).