We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
环境信息 请根据实际使用环境修改以下信息 go-cqhttp版本: since 44b26b7 运行环境: win/linux
bug内容 当前使用的解密key扫描方法会导致解密key尾端追加回车符/换行符(linux中仅追加换行符,对应ASCII为10;windows中,在换行符前还会追加一个回车符,ASCII为13。 这就造成了用户同样的键入在win/linux中却对应了不同的解密密钥,导致密码无法正常解密。
ASCII
10
13
应 #481 的需求,将隐藏解密密钥输入时的回显。目前初步有这几个想法:
terminal.ReadPassword()
欢迎各位大佬提供建议与帮助!
The text was updated successfully, but these errors were encountered:
理论上现在通过运行时传参的方式解密密码只能在win上用,原因也是因为我忽略了win/linux这一点点小差异。
Sorry, something went wrong.
c492465
No branches or pull requests
环境信息
请根据实际使用环境修改以下信息
go-cqhttp版本: since 44b26b7
运行环境: win/linux
bug内容
当前使用的解密key扫描方法会导致解密key尾端追加回车符/换行符(linux中仅追加换行符,对应
ASCII
为10
;windows中,在换行符前还会追加一个回车符,ASCII
为13
。这就造成了用户同样的键入在win/linux中却对应了不同的解密密钥,导致密码无法正常解密。
应 #481 的需求,将隐藏解密密钥输入时的回显。目前初步有这几个想法:
terminal.ReadPassword()
隐式读取密钥(读取结果不包含换行符与回车符),旧加密密文废除使用,重新加密。欢迎各位大佬提供建议与帮助!
The text was updated successfully, but these errors were encountered: