Skip to content
New issue

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

Use readpassphrase instead of getpass #109

Open
paulhimes opened this issue Nov 23, 2022 · 0 comments
Open

Use readpassphrase instead of getpass #109

paulhimes opened this issue Nov 23, 2022 · 0 comments

Comments

@paulhimes
Copy link

InputReader is using getpass to read secure values. Unfortunately, getpass is limited to 128 characters of input. The remaining input is silently truncated.

readpassphrase, on the other hand, can accept an arbitrary amount of input (up to a specified maximum). With readpassphrase you could choose a large character limit (e.g. 1024), or you could allow clients of SwiftCLI to specify a limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant