commit | b080dc9a8c480b08e698fb1219160d598526310f | [log] [tgz] |
---|---|---|
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | Wed Nov 22 18:46:40 2017 +0900 |
committer | Alex Brainman <alex.brainman@gmail.com> | Fri Nov 24 09:08:02 2017 +0000 |
tree | 8e9b1dfaac5b448aeb594108a330fd2d825a0c50 | |
parent | 9f005a07e0d31d45e6656d241bb5c0f2efd4bc94 [diff] |
ssh/terminal: handle non-ASCII characters when reading passwords ReadPassword uses Windows ReadFile to read from console handle. But ReadFile does not split input into UTF-8 characters, so ReadFile only works when input is ASCII. Use os.File instead of Windows ReadFile, because os.File reads console and parses it into UTF-8. Fixes golang/go#22828 Change-Id: Ifeed3e8048b51f46706c28d4154a3e4b10111a3e Reviewed-on: https://go-review.googlesource.com/79335 Reviewed-by: Alex Brainman <alex.brainman@gmail.com> Run-TryBot: Alex Brainman <alex.brainman@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This repository holds supplementary Go cryptography libraries.
The easiest way to install is to run go get -u golang.org/x/crypto/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/crypto
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the crypto repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/crypto:” in the subject line, so it is easy to find.
Note that contributions to the cryptography package receive additional scrutiny due to their sensitive nature. Patches may take longer than normal to receive feedback.